Forum Moderators: phranque

Message Too Old, No Replies

htaccess rewriterule question

         

meaussie

10:48 am on Sep 11, 2004 (gmt 0)

10+ Year Member



In my forum test template I had

<a href="./forumdisplay.php?fid=$forum[fid]">

replaced with

<a href="./$forum[fid].html">

and in htaccess have

RewriteRule ^forum([0-9]+).html$ forumdisplay.php?fid=$1 [L]

anyone see any issue with this as it isn't working!

meaussie

2:36 pm on Sep 11, 2004 (gmt 0)

10+ Year Member



I got that part to work, but I also wish to have threads display in the same manner and have not succeeded yet, so I've now posted this as a paid project at http://www.scriptlance.com/ [scriptlance.com]

If, interested, search for:

Mod_rewrite For Htaccess

Thank you.

SkyDog

12:40 am on Sep 12, 2004 (gmt 0)

10+ Year Member



Should be something like this, [0-9]+ isn't wrong but isn't nesseccary (the php code should filter that):

RewriteRule ^/forum(.*)\.html$ /forumdisplay.php?fid=$1 [L]