Forum Moderators: phranque
Module in httpd.conf is loaded correctly:
LoadModule rewrite_module modules/mod_rewrite.so
.htaccess file:
RewriteEngine on
RewriteRule ^go$ file.php
file.php exists.
I try to attempt url [localhost...] but i get this message:
The requested URL /go was not found on this server.
Obviously mod_rewrite don't pay attention on this. Where does the problem exits?
Many thanks
A. Mod_Rewrite the module has to be installed and available on the server.
B. you must have AllowOverride set to FileInfo or higher (All, etc.).
C. you must be able to follow sym links, usually Options +FollowSymLinks either in the httpd.conf (server configuration) or in the .htaccess file itself.
D. you must precede your rules/conditions with RewriteEngine on
Hopefully, step B or C will fix your problem.
Jim
You will have to change the name of .htaccess to something else like "htaccess" without a preceding dot, or "htaccess.txt", and use the AccessFileName [httpd.apache.org] directive to tell Apache to use that new filename instead.
Jim