View Single Post
Old 06-19-2012, 04:21 PM   PM User | #6
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,650
Thanks: 4
Thanked 2,451 Times in 2,420 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
You can use RewriteCond to determine if the requested is a directory or a file. What would probably work is a:
Code:
RewriteCond %{REQUEST_FILENAME} !-f
And proceed with your matching rules. That should only apply the rewrite rules so long as the requested file is not an actual file.

For domains, you can also use the RewriteCond to match hosts. This would allow a one line swap when you change a domain.

I hope that helps some, I'm not an apache wizard but I can typically stumble my way through.
Fou-Lu is offline   Reply With Quote