Forum Moderators: phranque

Message Too Old, No Replies

send all requests to one php page

use mod_rewrite to send request to one page

         

zeeshan12

5:26 pm on Mar 17, 2005 (gmt 0)

10+ Year Member



Hi,

I'm trying to rewite a url to send all the requests to one php file. so the url

www.mysite.com/category1/category2/

should go to

www.mysite.com/show.php?q=category1/category2/

and

www.mysite.com/category1/article1

should again to like

www.mysite.com/show.php?q=category1/article1

can anyone help me out with this.

thanks
zeeshan

sitz

1:54 am on Mar 18, 2005 (gmt 0)

10+ Year Member



There are numerous examples of similar things in the archives; I'd suggest searching there first. Try searching for 'RewriteCond" and "query string", for starters.