deloreandude Posted November 25, 2007 Share Posted November 25, 2007 hi, im new to this forum, so hello everyone ok down to business, i have had problems with my htaccess file. which consists of the following RewriteCond %{HTTP_HOST} ^.*$ RewriteRule ^/?$ http://www.mydomain.com/subdir/ [R=301,L] ok heres the problem, although the site works, when you hit www.mydomain.com you are redirected to the subdir folder where the site lives. Great... but.. its shows the address with the subdir in the address bar (never used too) how can i stop this from happening.. what exactly is the 4 lines above doing.. and if anyone can help one last thing.. how can i make it so that if someone types www.mydomain.com/forum they are automatically redirected to www.mydomain.com/subder/index.php?forum but again leaving forum in the address bar any help would be greatly appreciated.. thanks a million.. deloreandude Quote Link to comment https://forums.phpfreaks.com/topic/78778-htaccess-file-help-needed-please/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.