Forum Moderators: phranque
In this way, all URLs like
[mysite.com...] will rewrite to
[mysite.com...]
However, I do not want to rewrite exist folders becase there are some folder like /images/ could not be used correctly any more. Is there a way to exclude these exist folders from the rewrite rule?
Edit: Sorry the topic should be: How to exclude...
use a RewriteCond (Rewrite-Condition) for this. You place it one line before the Rewrite-Rule, so the Rewrite-Rule will only be executed if the condition matches. the condition should be: directory does not exist.
RewriteCond %{REQUEST_FILENAME}!-d
RewriteRule ...
something like this should do the job (not tested). documentation [httpd.apache.org].
- hakre