Hi friends,

I am having small doubt regarding redirection of my webpages.

folder structure : project/admin/

i want to redirect this to project/admin/adminlogin.php

Please check the below .htaccess code and corect me plz.

Below .htaccess file saved in project/admin/ this path.

Options +FollowSymLinks
RewriteEngine On
DirectoryIndex adminlogin.php

Recommended Answers

From here you can find some useful code for URL redirection:
http://www.tripwiremagazine.com/2011/04/php-redirect-to-another-page.html

Jump to Post

All 2 Replies

you can simply use following for redirection.

header("Location: new_url");
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.