Forum Moderators: phranque

Message Too Old, No Replies

Different variables and mod_rewrite

How to get mod_rewrite work with different variables

         

Produck

10:49 pm on Mar 24, 2005 (gmt 0)



Hello,

I'm trying to get a nice looking URL using mod_rewrite, but I think I got a problem. I'm using different names and a different amount of variables on many of the pages on my website.

For example, one URL might look like this:
?cat=10&art=ARTICLE&id=99

And another like this:
?inc=main&style=blue

I way to solve my problem is using URLs like this:

/cat/10/art/ARTICLE/id/10 (which will be the same as?cat=10&art=ARTICLE&id=10)

How should the .htaccess file look like?

sitz

11:54 pm on Mar 24, 2005 (gmt 0)

10+ Year Member



There are examples of this in the forum archives; you shouldn't have to go back too far.

jdMorgan

2:16 am on Mar 25, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Produck,

Welcome to WebmasterWorld!

Here's a search [google.com] to turn up some relevant threads.

Jim