Click here to Skip to main content
14,881,921 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a problem i would like to redirect the to The admin1 is the subfolder that contains the index page which will start as the home page. I have used

RewriteEngine On
Redirect 301 /

in the .htaccess file. Then i uploaded it to the www root in the hosting account but am unable to get the result

what should i do?

Thank you
Updated 14-Sep-11 6:28am

1 solution

Don't use .htaccess for this
-> First create index.php in root folder of your website.
-> Then write
header("Location: admin1\index.php");

to it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900