Currently, anything after "Vegan.fm/" redirects to a search query for the wiki at "vegan.fm/isitvegan"
So "vegan.fm/casein" returns a search page for "casein"
This works okay, however, I'd like to add a simple redirect for "vegan.fm/places" to go to the places entry (/isitvegan/doku.php?id=places) instead of the query (/isitvegan/doku.php?do=search&id=places)
This is what I have, can you tell me what's wrong?
---------------------
Options +FollowSymLinks
RewriteEngine On
# Trying to take "vegan.fm/places" directly to the places page instead of query.
RewriteRule ^/places$ /isitvegan/doku.php?id=places
# Everything I have after this point works fine. I only added the top rewrite rule
# If it's not a request to an existing file
RewriteCond %{SCRIPT_FILENAME} !-f
# and it's not a request to an existing directory
RewriteCond %{SCRIPT_FILENAME} !-d
# send the request to /isitvegan/doku.php?do=search&id=
RewriteRule ^(.+)$ /isitvegan/doku.php?do=search&id=$1 [QSA,L]