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
--
Signed on Mon Apr 24 23:59:50 2006 with key 0x93B84C15.
Visit my photo gallery at
http://bloodgate.com/photos/
PGP key on
http://bloodgate.com/tels.asc or per email.
"Zudem könnten nun nicht mehr nur Täter, sondern auch Opfer abgehört
werden, um diese besser zu schützen." Jörg Bode, FDP -
http://heise.de/newsticker/data/anw-11.12.03-003/