I am trying to map a domain to a subdirectory of a hosting account using a rewrite rule in .htaccess. This works fine if just the domain name is entered, but if a subdirectory of the mapped domain is entered the location is found, but the location bar resolves to the file path of the main domain, unless a trailing '/' is keyed with the URL
For example :
" works fine
" works fine
" redirects to which is not the desired effect.
The .htaccess rewrite entries are as follows :
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^( [NC]
RewriteRule !^sites/mumps.biz /sites/mumps\.biz%{REQUEST_URI} [L]
I've tried putting a trailing slash in the last line, i.e
RewriteRule !^sites/mumps.biz /sites/mumps\.biz%/{REQUEST_URI} [L]
but this then results in redirecting to whereas it leaves in the location bar as I have it now.
I want to look to visitors like a fully independant domain, and not show in the location bar anything to do with the actual domain that the files reside on.
Any ideas?
Thanks
For example :
" works fine
" works fine
" redirects to which is not the desired effect.
The .htaccess rewrite entries are as follows :
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^( [NC]
RewriteRule !^sites/mumps.biz /sites/mumps\.biz%{REQUEST_URI} [L]
I've tried putting a trailing slash in the last line, i.e
RewriteRule !^sites/mumps.biz /sites/mumps\.biz%/{REQUEST_URI} [L]
but this then results in redirecting to whereas it leaves in the location bar as I have it now.
I want to look to visitors like a fully independant domain, and not show in the location bar anything to do with the actual domain that the files reside on.
Any ideas?
Thanks