mod_rewrite rule problems
Posted: Tue May 12, 2009 4:07 pm
I have several domains on a single server which all share some common code which I want to reference using subdomain.com/lib/file.gif (actually, I'd be using relative paths, but this is what it would refer to), which should then be redirected to another URL so I only need to upload the lib once.
I tried adding the following rule:
This does not seem to work... Any suggestions?
I tried adding the following rule:
Code: Select all
RewriteCond %{REQUEST_URI} ^/lib/(.*)$ [NC]
RewriteRule ^(.*)$ http://libdomain.com/lib/$1 [R=302,L]