Sunday, February 14, 2010

Programmer - mod_rewrite ignored/not working

Programmer Question

I am having some issues with mod_rewrite on a new Apache dev PC I have set up.



I have enabled mod_rewrite as an apache module and editted the conf file to allow rewriting, however when I try creating rewrites nothing happens. The htaccess file is being invoked to some extent as I am able to cause a 500 error by putting invalid syntax in the file.



Can someone spot the stupd mistake I am making or suggest something else that I am missing that needs enabling?



httpd.conf:



<Directory />
Options FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
</Directory>


htaccess code:



RewriteEngine on
RewriteBase /

RewriteRule ^content/css/([a-z0-9])/$ /min/?g=$1 [L]

RewriteRule ^1.php$ 2.php

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails