Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rewrite Rule and Images

Status
Not open for further replies.

cjhowland

Programmer
Apr 25, 2002
12
0
0
GB
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top