Forum Moderators: phranque

Message Too Old, No Replies

Sorry anoth request for mod_rewrite help

help with mod_rewrite

         

nicklnz

11:25 pm on Nov 8, 2005 (gmt 0)

10+ Year Member



Hi, I'm struggling with a problem migrating apache versions, I have to confess I'm not rewrite expert and have always relied on blind luck to an extent.

we use simple url's of the form:

www.foo.co.nz/index/category/sub_category/title/parameter/para...

or

www.foo.co.nz/shop/category/sub_category/title/parameter/para...

Up until we migrate apache these worked, but with Apache2 I get page not found.

What I need is the rewrite rule to pick up everything after the domain name i.e/ shop/category/sub_category/title/parameter/para...
and work out the page name "shop.php" and the parameters to pass to the page.

Its very frustrating as everything works on our production servers, test servers both linux and Mac OS X. But the new server just doesn't want to play ball. So you help would be very much appreciated.

jd01

12:19 am on Nov 9, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi nicklnz,

Welcome to WebmasterWorld.

I think we will need more information before we can offer any advice.

1. Do the portions of the URLs need to be passed to specific parameters in the php file?

2. Is this for every file on the site, or just a portion.

3. What code have you tried, or are you trying that we can comment on/adapt?

4. Any other information you can think of that has to do with URL/php information structure.

Justin