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

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.