Evening all! I've got a bit of a problem with htaccess..
If a user visits http://willesley.org/shop this works fine, as the file doesn't exist so mod_rewrite passes it to /index.php which looks it up in the cms.
The same goes for http://willesley.org/shop?edit which passes 'edit' as a GET variable to /index.php.
http://willesley.org/campsite/ is an empty directory (no index file). Visiting this redirects to /index.php (as it should)
http://willesley.org/campsite/?edit doesn't work - it doesn't pass the GET variable to /index.php. Anyone got any ideas why this is?
Code:
Options +FollowSymLinks -Indexes
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-s
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
If a user visits http://willesley.org/shop this works fine, as the file doesn't exist so mod_rewrite passes it to /index.php which looks it up in the cms.
The same goes for http://willesley.org/shop?edit which passes 'edit' as a GET variable to /index.php.
http://willesley.org/campsite/ is an empty directory (no index file). Visiting this redirects to /index.php (as it should)
http://willesley.org/campsite/?edit doesn't work - it doesn't pass the GET variable to /index.php. Anyone got any ideas why this is?