[Melbourne-pm] Apache re-write help
Robert Norris
rob at cataclysm.cx
Mon Feb 22 01:07:03 PST 2010
> I think what I need is to add this to my .htaccess file
>
> RewriteEngine on
> RewriteRule ^features/([^/]+)/([^/])+/?$ features?title=$1&venue=$2 [L]
Slightly broken regex there (the repetition operator should come inside
the capture), but I think that looks about right. You should also add
the [QSA] (query string append) flag to make sure that, well, the query
string gets appended :P
I'm no mod_rewrite expert by any stretch, but I have done almost exactly
what you're doing many times when setting up MediaWiki to have pretty
URLs. Its normal to do something like this:
RewriteRule ^(.*)$ wiki/index.php?title=$1 [L,QSA]
Cheers,
Rob.
More information about the Melbourne-pm
mailing list