Forum Moderators: phranque
Pulling my hair out here:
I'm trying to turn this:
www.site.com/viewtopic.php?t=44
Into somthing reasonable like:
www.site.com/viewtopic/44.html
I have this so far, but I'm almost embarrassed to post it ;)
rewriteEngine On
rewriteRule ~viewtopic\.php/$ /viewtopic.php?t=$1
The ~ is actually a carrot, but for some astonishing reason my keyboard refuses to print one!
If someone can put me on the right track I'm sure I can work it out, I'd appreciate a jump start though ;)
Many thanks
Nick
RewriteEngine On
RewriteRule ^(.*)viewtopic/(.*).html /viewtopic.php?t=$2
RewriteEngine On
RewriteRule viewtopic/(.*)\.html /viewtopic.php?t=$1 [L]
Jim