1
   

Rewriting a dynamic url

 
 
View Profile 993ti
 
Reply Sat 26 Feb, 2005 07:02 pm
I'm trying to rewrite a dynamic url to a more search engine friendly url.
I'm using the phpbb SEO mod and did a couple extra rewrites for my site with it.
The url is like this:
dload.php?action=category&cat_id=2
I'm adding this in htaccess:
Code:RewriteRule ^download-categorie-([0-9]*).* dload.php?action=category&cat_id=$1 [L,NC]

And this in page_header.php:

Code:"'(?<!/)dload.php?action=category&cat_id=([0-9]*)'",

Code:"download-categorie-\\1.html",

Pages like portal.php?page=2 are rewritten correctly but somehow it doesn't work with the longer urls.
Any ideas?
  • Topic Stats
  • Top Replies
  • Link/Embed
Type: Discussion • Score: 1 • Views: 173 • Replies: 0
No replies

 
 

Related Topics

I'm the developer - Discussion by Nick Ashley
how to earn money in internet - Discussion by rizwanaraj
THANK YOU CRAVEN AND NICK!!! - Discussion by dagmaraka
The version 10 bug. Worse then Y2K! - Discussion by Nick Ashley
CSS Border style colors - Question by meesa
There is no Wisdom in Crowds - Discussion by ebrown p
mod rewrite for a different theme? - Discussion by etali
 
  1. able2know
  2. » Rewriting a dynamic url
Copyright © 2009 Horizontal Verticals :: Page generated in 0.35 seconds on 11/22/2009 at 03:28:40 Top End