I have the following rerwite rules in my .htaccess file. These allow me to run domain within a subdirectory of my main hosted account.
RewriteEngine On
RewriteBase /sites/
RewriteCond %{REQUEST_URI} ^/([/A-Za-z0-9_]*)?([A-Za-z0-9_]+)$
RewriteRule ^(.*) [L]
RewriteCond %{HTTP_HOST} ^( [NC]
RewriteRule !^sites/mumps.biz /sites/mumps\.biz%{REQUEST_URI} [L]
This works fine, except when there are images on the page and the selected URL end with a directory name but no trailing slash :
e.g.
shows an image, but
does not
Any ideas?
RewriteEngine On
RewriteBase /sites/
RewriteCond %{REQUEST_URI} ^/([/A-Za-z0-9_]*)?([A-Za-z0-9_]+)$
RewriteRule ^(.*) [L]
RewriteCond %{HTTP_HOST} ^( [NC]
RewriteRule !^sites/mumps.biz /sites/mumps\.biz%{REQUEST_URI} [L]
This works fine, except when there are images on the page and the selected URL end with a directory name but no trailing slash :
e.g.
shows an image, but
does not
Any ideas?