rewrite works but ...

Discuss practical ways rearrange URLs using mod_rewrite.

rewrite works but ...

Postby paris18m » Tue Feb 14, 2006 12:34 am

I am using the following code in my htaccess file

[code]Options +FollowSymLinks
RewriteEngine on
RewriteRule ^partners-category-(.*)\.htm$ partners.php?mode=LIST&categoryid=$1[/code]

which then i can type partners-category-15.htm and it will be as if i am asking for the page partners.php?mode=LIST&categoryid=15. That is nice and fine. However my site is full with links like partners.php?mode=LIST&categoryid=15, how do i go about using mod rewrite to change them all so that they will appear like this one? partners-category-15.htm

Am i doing someting wrong or am i missing someting there is to do in order for all the dynamic links in my page to show up like static links?
paris18m
 
Posts: 1
Joined: Tue Feb 14, 2006 12:17 am

Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 27 guests

cron