Hi,
Let say that i have a website stored in /public_html/subfolder/
.htaccess is stored in /public_html
when user type (in browser) www.mywebsite.com, he should be redirected to /public_html/subfolder/index.html
however user should only see in browser address bar www.mywebsite.com and not www.mywebsite.com/subfolder/
this i solved using:
this works....Code:RewriteBase / #Rewrites http://www.website.com/subfolder to http://www.website.com/ RewriteCond %{REQUEST_URI} !^/subfolder RewriteRule ^(.*)$ subfolder/$1 [L]
now, let say that website allow admin login using /public_html/subfolder/admin/
i would like to display only http://www.website.com/admin/ and not as it is now: http://www.website.com/subfolder/admin/
therefore i was thinking to add to previous code:
but this does not work.Code:#Rewrites http://www.website.com/subfolder/admin/ to http://www.website.com/admin/ RewriteCond %{REQUEST_URI} !^/subfolder/admin/ RewriteRule ^(.*)$ subfolder/admin/$1 [L]
Any idea where is my mistake ?
thx


Reply With Quote


Bookmarks