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:
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.
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
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 127.0.0.1] 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
01-23-2007, 09:10 PM
whey hey! it was a problem with EasyPHP configurations
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.