Bit of help please. I almost have it done.

CLOSED

Bit of help please. I almost have it done.

Postby rudyten » Thu Jan 20, 2011 10:32 pm

1. http://www.example.com/cat/supply/crafts -> http://www.example.com/listings.php?cat ... ply/crafts
2. http://www.example.com/cat/supply -> http://www.example.com/listings.php?cat=cat/supply
3. http://www.example.com/cat -> http://www.example.com/listings.php?cat=cat

Code: Select all
RewriteRule ^cat/[-a-z0-9_.]+(?:/[-a-z0-9_.]+)*?(\.html|/)?$ /listings.php?cat=$0 [NC,QSA,L]


I can not get #3 to work. Could someone see what I am doing wrong? Thanks
rudyten
 
Posts: 37
Joined: Wed Nov 17, 2004 8:57 am

Re: Bit of help please. I almost have it done.

Postby rudyten » Fri Jan 21, 2011 11:11 am

Code: Select all
RewriteRule ^cat(\.html|/)*?$ /listings.php?cat=cat [NC,QSA,L]
RewriteRule ^cat/[-a-z0-9_.]+(?:/[-a-z0-9_.]+)*?(\.html|/)?$ /listings.php?cat=$0 [NC,QSA,L]


I applied another Rule above it my first rule. Does not seem like fine work, but IT IS working :P

any better ideas?
rudyten
 
Posts: 37
Joined: Wed Nov 17, 2004 8:57 am


Return to New Threads/Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

cron