I have a htaccess file that works fine on the host, but when I put it in the local one, it shows me this error:
Internal Server Error
The server detected an internal error or an incorrect configuration and your request failed.
Contact the server administrator, admin @localhost and tell them the time when the error occurred, and anything you could do that could lead to an error.
Additional information about this error may be available if a server error occurs.
I found this warning in the error log file:
[Tue Apr 17 10:02:25 2012] [alert] [client 127.0.0.1] D: /wamp/www/jivan/sql/.htaccess: Invalid header command, possibly with an error or determined by the module not included server configuration
this is my htaccess file code:
RewriteEngine On AddDefaultCharset utf-8 RewriteRule ^([0-9-]+)/keyword_show.html$ keyword_show.php?keyword_id=$1 RewriteRule ^page_(.*).html$ page.php?url=$1 RewriteRule ^([0-9-]+)/(.*)/(.*)/(.*).html$ $2.php?advertisement_cat=$1&id=$3&pagenumber=$4 RewriteRule ^([0-9-]+)/(.*)/(.*).html$ $2.php?advertisement_cat=$1&pagenumber=$3 RewriteRule ^([0-9-]+)/(.*).html$ $2.php?advertisement_cat=$1
my local server launched wamp, and I also enabled the rewrite module !!!
so what is the question ?!
.htaccess wamp
afsane Apr 17 '12 at 5:40 2012-04-17 05:40
source share