<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I have something weird going on using mod rewrite on apache 2.2.9. <br>
<br>
The goal here is to serve up multiple web sites using the same code
but with each site having its own images, css, and javascript
directories.<br>
<br>
The first rewrite rule rewrites /images/file.png into
/domains/[domain name]/images/file.png. That part works fine except
[L] should stop processing the rewrite rules but its not. <br>
<blockquote>Options -Indexes<br>
<br>
RewriteEngine On<br>
RewriteBase /<br>
<br>
RewriteRule ^(images|css|js)/(.*)$ domains/%{SERVER_NAME}/$1/$2
[L]<br>
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]<br>
</blockquote>
<br>
the first rewrite rule works fine if I comment the second rewrite
rule. I can even see the results of the first rewrite rule in the
$_GET variable when the second rule functions. The first rule does
rewrite the URL. It just doesn't stop processing.<br>
<br>
A work around since the rewritten directories don't contain php or
html is this:<br>
<blockquote>RewriteRule ^(images|css|js)/(.*)$
domains/%{SERVER_NAME}/$1/$2 [L]<br>
RewriteRule ^(.*)\.(php|htm|html)$ index.php?q=$1
[L,QSA]<br>
</blockquote>
but then I can't have /about it must be /about.htm or about.php etc<br>
<br>
I'm having the same issue regardless if I use the .htaccess file or
the apache configuration files. I also have not left the rewrite
rules in both at the same time. <br>
<br>
Dave<br>
<br />--
<br />This message has been scanned for viruses and
<br />dangerous content by
<a href="http://www.mailscanner.info/"><b>MailScanner</b></a>, and is
<br />believed to be clean.
</body>
</html>