i want redirect to new/index.php when people type
site.com
site.com/index.php
site.com/index.html
site.com/index.htm
So this code below maybe right ?
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^index\.(html|php|htm)$ new/index.php
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use this instead :
If you don’t want people to see there address bar changed to /new, remove the
R=301flag.You can have more information about mod_rewrite here