Hello I created a .htaccess file in root folder (www) with this code
RewriteEngine On RewriteRule ^(.*)-(.*)-(.*).htm /index.php?s1=$a&s2=$b&s3=$c
but now with any page I access on localhost, I have this error:
"Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@localhost 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."
I put the same file on a server and it works, but I need to work in WAMP. If I delete the htaccess file WAMP work again.
I need help. Please someone tell me what I have to do that rewrite rule work!
< If I am correct, with this version you have only to uncomment the line < # LoadModule rewrite_module modules/mod_rewrite.so < < and there is no: < # AddModule mod_rewrite.c < < Only Apache version before 2.0 have the AddModule thing right?
Ignore the AddModule mod_rewrite.c stated above, you need to enable modrwrite using LoadModule.
just edit your httpd.conf file, fine this line: #LoadModule rewrite_module modules/mod_rewrite.so
Chane this to: LoadModule rewrite_module modules/mod_rewrite.so
Save the file, restart apache for the new settigns to take effect.