PHP htaccess redirect

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
BritishAgent
Forum Newbie
Posts: 7
Joined: Thu Jan 31, 2008 4:09 pm

PHP htaccess redirect

Post by BritishAgent »

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?

:banghead:

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
BritishAgent
Forum Newbie
Posts: 7
Joined: Thu Jan 31, 2008 4:09 pm

Re: PHP htaccess redirect

Post by BritishAgent »

Seeing as I can't find any information online, or get anyone to bite on this topic, I'm beginning to think that I might be coming at this from the wrong angle.

Is there some other way to redirect that I should be looking at instead?
Post Reply