0

Possible Duplicate:
Rewriting an arbitrary number of path segments to query parameters

htaccess` rewrite but im not sure on how to rewrite multiple address gets

I developed a forum from scratch and would like to change

url = view_topic.php?cat=$cat&sub=$sub&tid=$tid

to say

view_topic.php?catname/subname/topicname

some help would be great

Community
  • 1
  • 1
Dualz
  • 51
  • 5

1 Answers1

1

Have you tried something like this?

Options +FollowSymlinks
RewriteEngine On

RewriteRule ^viewtopic/([a-z])/([a-z])/([a-z])$ viewtopic.php?cat=$1&sub=$2&tid=$3 [NC,L]
Kai Qing
  • 18,793
  • 5
  • 39
  • 57