1
   

Rewriting a dynamic url

 
 
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 to this Topic
Type: Discussion • Score: 1 • Views: 681 • Replies: 0
No top replies

 
 

Related Topics

Webdevelopment and hosting - Question by harisit2005
Showing an Ico File - Discussion by Brandon9000
how to earn money in internet - Discussion by rizwanaraj
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
THANK YOU CRAVEN AND NICK!!! - Discussion by dagmaraka
I'm the developer - Discussion by Nick Ashley
 
  1. Forums
  2. » Rewriting a dynamic url
Copyright © 2025 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 01/18/2025 at 12:28:37