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

Possible Duplicate:
Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask?

I have come back to this as got sidelined on other things for ages. So please find my details below, with these details i get the following error still:

   500 Internal Server Error

   The server encountered an internal error or misconfiguration and was unable to complete your request.

   Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.

   More information about this error may be available in the server error log.

my url:


My htaccess:

  RewriteEngine On
  RewriteRule (.*?)/(.*?)/(.*?)$

Now if I comment out all except the 'RewriteEngine On'

  RewriteEngine On
  #RewriteRule (.*?)/(.*?)/(.*?)$

my /etc/apache2/httpd.conf file details are below:

 <Directory />
     Options Indexes MultiViews FollowSymlinks
     AllowOverride All
     Order allow,deny
     Allow from all

 <Directory "/Library/WebServer/Documents/">
   Options Indexes MultiViews FollowSymlinks
   AllowOverride All
   Order allow,deny
   Allow from all

Mac Snow Leopard. My directory is within DocumentRoot "/Library/WebServer/Documents" and I do not use the normal http://localhost/~User/ but http://localhost/?? etc

This might or might not but just noticed that if I list my directories by just going to localhost then the folder I am using is not visible??? within the list of other folders

So to the life of me do not know whats going on.

share|improve this question

marked as duplicate by Sven, Michael Hampton, HopelessN00b, Hubert Kario, Scott Pack Oct 7 '12 at 21:21

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 2 down vote accepted


  RewriteEngine On
  RewriteRule ^(.*?)/(.*?)/(.*?)$ /exp/index.php?page=$1&action=$2&id=$3
share|improve this answer
thanks for this, must have been something to do with the white space then??? i also REMOVED the /exp/ and that worked cheers – Simon Davies Apr 23 '12 at 19:41

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