I’m trying to convert a subdirectory to a variable for use in a query.
e.g.
domain/subdir/STRING (Need the “STRING” subdir)
converted to:
domain/subdir/index.php?q=STRING
All I’m getting are Internal Server Errors and 404’s and the phpinfo() for some odd reason.
P.S.
Tried the info on this page already: http://corz.org/serv/tricks/htaccess2.php
EDIT:
This appears to be working.
RewriteRule ^([a-zA-Z0-9]+)$ index.php?qst=$1
But it limits the match to AlphaNum characters and I would like to inlcude, -, _ and the # if it’s possible.
1 Answer