Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I call my site this way locally:


In .htaccess I have:

RewriteEngine on

RewriteRule !^((css|js|images)/.*)$ index.php%{REQUEST_URI} [L, NE]

I try to rewrite that into:


Any idea what's wrong there?

share|improve this question
up vote 0 down vote accepted

First thing I can see is that the path should be mysite/index.php

Probably also have to remove the \mysite\ from your regex because as it is now your REQUEST_URI is going to include mysite\xxxxx

You should probably use a rewrite condition to skip css,images, etc and then rewrite like this

RewriteRule (.*) /mysite/index.php/$1
share|improve this answer

If your server is throwing errors at you, you should look in the server log to see why. You can also enable logging of RewriteRule processing, see the docs.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.