1

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, you@example.com 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:

  localhost/exp/index.php 

My htaccess:

  RewriteEngine On
  RewriteRule (.*?)/(.*?)/(.*?)$
  exp/index.php?page=$1&action=$2&id=$3

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

  RewriteEngine On
  #RewriteRule (.*?)/(.*?)/(.*?)$
  #exp/index.php?page=$1&action=$2&id=$3

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

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


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

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.

Simon Davies
  • 205
  • 1
  • 2
  • 9

1 Answers1

2

Try:

  RewriteEngine On
  RewriteRule ^(.*?)/(.*?)/(.*?)$ /exp/index.php?page=$1&action=$2&id=$3
xofer
  • 3,052
  • 12
  • 19
  • 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