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:

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.