Welcome Guest, Not a member yet? Register   Sign In
Another htaccess issue redirecting from subdirectory
#1

[eluser]boony[/eluser]
Hi,

Another htaccess question Confusedmirk:

I have a site in a subdirectory such as http;//mysite.com/subdir and want all requests to http://mysite.com to go to the subdir.

OK OK I got that bit working with my htaccess:
Code:
RewriteEngine On
RewriteRule ^$ mbrg_ci/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ mbrg_ci/$1

That works so that a call to http://mysite.com redirects to http://mysite.com/subdir..

But I also want all the calls within the the subdirectory to drop the subdirectory name so that

http://mysite.com/subdir/welcome shows with the url of

http://mysite.com/welcome

I can't figure out the htaccess rewrite rule for that so any help would be fabulous.

Boony




Theme © iAndrew 2016 - Forum software by © MyBB