httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jsl...@gmail.com>
Subject Re: [users@httpd] problems with icons with mod_rewrite
Date Sat, 15 Jan 2005 14:04:55 GMT
On Sat, 15 Jan 2005 06:01:22 -0800 (PST), Anil Gaddam <anilmx@yahoo.com> wrote:
> I added the following to my to my httpd.conf to make
> sure that user.domain.com will serve
> /home/user/public_html.
> 
> RewriteEngine On
> # Skip www.domain.com
> RewriteCond %{HTTP_HOST} !^(www\.)
> RewriteCond %{HTTP_HOST} ^([^.]+)\.rabio\.com
> RewriteRule ^(.*)$  /home/%1/public_html$1
> 
> but problem is when i goto a
> http://shantanoo.rabio.com, all the icons are missing.
> it's supposed to look like:
> http://rabio.com/~shantanoo

Add
RewriteCond %{REQUEST_URI} !^/icons.*
before your RewriteRule to make sure the icons are still served from
their normal location.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message