Is it posssible to use a website located in a directory, and make it look like its in the root. So all the files located in the folder will work fine, but redirect to the root.
e.g www.website.com/folder/ to www.website.com
thanks
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}/folder%{REQUEST_URI}/ -d
RewriteRule [^/]$ %{REQUEST_URI}/ [R=301,L]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^(.*)$ /folder/$1 [QSA,L]
Users browsing this forum: No registered users and 2 guests