PHP htaccess redirect
Posted: Thu Jan 31, 2008 4:14 pm
Hi
I'm new to the board so please go easy on me - I'll try to be as clear as I can.
I'm working on a large site that has lots of product pages dynamically generated by PHP. We have recently revamped the site and have restructured the folder set-up significantly from the old structure.
We're using htaccess to do a 301 redirect from the old pages to the new, but whenever it gets to a url with a ? it doesn't work.
The htaccess seems to work fine for all urls which are either plain html or are PHP but without a ? in the url.
I'm having trouble finding any information online so I'm not sure that this is actually my problem, but does anyone have any idea what I might be able to do to fix this?

Sorry - meant to post a snippet:
I'm new to the board so please go easy on me - I'll try to be as clear as I can.
I'm working on a large site that has lots of product pages dynamically generated by PHP. We have recently revamped the site and have restructured the folder set-up significantly from the old structure.
We're using htaccess to do a 301 redirect from the old pages to the new, but whenever it gets to a url with a ? it doesn't work.
The htaccess seems to work fine for all urls which are either plain html or are PHP but without a ? in the url.
I'm having trouble finding any information online so I'm not sure that this is actually my problem, but does anyone have any idea what I might be able to do to fix this?
Sorry - meant to post a snippet:
Code: Select all
Redirect 301 php/location.php?LOCATION=Butler http://www.site.com/store/locations.php?LOCATION=Butler