Moin,
On Monday 24 April 2006 20:16, a@kid wrote:
Try this ...
if you want users to type yourdomain.com/wiki/SomeArticle to get yourdomain.com/rootdirectory/index.php?title=SomeArticle
use RewriteRule ^wiki/(.*)$ rootdirectory/index.php?title=$1 [QSA]
This only works if wiki and rootdirectory are different. Otherwise,
yourdomain.com/wiki/index.php?title=SomeArticle
would also match and result in
yourdomain.com/wiki/index.php?title=index.php?title=SomeArticle
Thats why the rules with "-f" and "-d" are better, they catch non-files and non-directories and link them into the wiki path.
Related:
The syntax wiki/index.php/SomeArticle will not work if you are using PHP as a cgi-bin module (instead of it being in apache as mod-php).
On shared servers, you might need (or only have) the cgi-bin, and it can only deal with the index.php?title=SomeArticle syntax.
Best wishes,
Tels