Same page, one and two variables

Discuss practical ways rearrange URLs using mod_rewrite.

Same page, one and two variables

Postby Bilbo » Thu Aug 26, 2004 1:47 pm

Hi!

Im trying this:

categorie.php?c=100
to
categorie100.html

and too, this:

categorie.php?c=100&start=60
to
categorie100-60.html

But, i can not...

Help me please...

Thanks
Bilbo
 

Postby seomike » Wed Sep 08, 2004 3:45 pm

RewriteEngine On
RewriteBase /

RewriteCond%{REQUEST_URI} /categorie.*-.*\.html$
RewriteRule ^categorie([0-9]+)-([0-9]+)\.html$ /categorie.php? [L]c=$1&start=$2

RewriteRule ^categorie([0-9]+)\.html$ /categorie.php?c=$1 [L]

That's all you have to do :)
seomike
 
Posts: 331
Joined: Thu May 06, 2004 7:36 pm
Location: Dallas


Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 100 guests

cron