My current rules look like this:
- Code: Select all
RewriteCond %{HTTP_HOST} ^127.0.0.1/(.*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !(\.(gif|jpg|jpeg|png|css|js)$|index.php$) wbcms/ [L]
The first condition is just for use in my development area (I need to rewrite differently on different hosts), the next two were trying to stop the resulting 404s.
Currently if I go to 127.0.0.1/wbcms/ it works, but if I go to 127.0.0.1/wbcms/test, Apache will complain that /test doesn't exist (404) instead of rewriting it.
Basically I want everything to be rewritten and sent to wbcms/ or / (on a different host) so that my index.php can handle everything.
Any ideas? Thanks.