Hi All,
On my local server I cannot get modrewrite to work. I have a simple script which I tested on my live server, and the rules there work. So the .htacces file is correct.
What are the apache settings I need to allow URL rewriting? I have set:
LoadModule rewrite_module modules/mod_rewrite.so
AddModule mod_rewrite.c
DocumentRoot "F:/webroot/"
<Directory "F:/webroot/">
Options Indexes FollowSymLinks MultiViews Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from localhost 127.0.0.1
</Directory>
What have I forgotten to initialize?
The rewrite rule is simple, and works live:
Options +FollowSymLinks
RewriteEngine on
RewriteRule pics/(.)/(.)/$ pics.php?$1=$2
It just loads the file pics.php (The default action for /pics) and PhPinfo shows:
REQUEST_URI /work/bio-vision/website/portfolio/pics/keys/Human/