View Full Version : archive & mod_rewrite
KevinM
08-05-2004, 08:03 PM
I want to shorten the archive url a bit, but I am not familiar with the re_write rules. I've searched around and seen it discussed, but can't find any example of the rule that could be used.
Can anyone help with the rule for changing:
http://www.forum.com/archive/index.php/anything.html
to
http://www.forum.com/a/anything.html
All help appreciated.
firstimecaller
08-05-2004, 11:14 PM
would be better to be http://www.forum.com/keyword-t-12345.html
I'm working on this right now. Instead of using Apache's lookback feature and forcing a script to PHP, it will work better with mod_rewrite.
lierduh
08-06-2004, 01:35 AM
I have:
RewriteEngine on
RewriteRule ^arc/(.*)$ archive/index.php/$1 [L]
My archive index page is:
http://forums.mydomain.com.au/arc/
It means the match between
^ and $
is
arc/anything_matched
mirrors to
archive/index.php/anything_matched
[L] means it is a rule, I think it also works without it.
KevinM
08-06-2004, 07:34 PM
Thanks Lierduh, that did the trick.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.