View Full Version : Mod rewrite rule! giving me a 500 internal server error!

01-23-2007, 07:54 PM
Hey all, i have searched the forum and cant find the solution to my problem. I want a mod rewrite rule to convert index/12/13/14 to index.php?p=12&a=13&s=14 but i have the following code:

RewriteEngine on
RewriteRule index/(.*)/(.*)/(.*)\.html$ index.php?p=$1&a=$2&s=$3

but this provides a 500 internal server error
any help would be greatly appreciated


01-23-2007, 08:02 PM
This error occurs in the final step above when the client receives an HTTP status code that it recognises as '500'.
It's an error with your web server providers.
Contact them and tell them about your error.


Velox Letum
01-23-2007, 08:34 PM
Your rewrite rule is broken, that's why Apache is returning a 500 error. Probably the lack of an escape for the period in .html.

01-23-2007, 08:43 PM
Its running from localhost, so the server is my own really..

Also ive noticed i dont actually need the .html part, but with the following code im still havinmg troubles

Options +FollowSymlinks
RewriteEngine on
RewriteRule ^index/(.*)/(.*)/(.*)/?$ index.php?p=$1&a=$2&s=$3

01-23-2007, 09:01 PM
just looked at my error logs and found:

[Tue Jan 23 19:54:45 2007] [alert] [client] c:/program files/easyphp1-8/www/hta/.htaccess: Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration

Any ideas??

01-23-2007, 09:10 PM
whey hey! it was a problem with EasyPHP configurations