I just rebuilt my site and need to 301 redirect the old urls example
Old url http://www.boatboss.com/?search=Ranger&all_locations=yes&catid=-999&view=ads
Redirect to new url http://www.boatboss.com/maker/ranger/
I cant get it to work from cpanel as the old url is dynamic. There are 170 of this type url but the names all match
How much to do this for me
I got it working
Since the answer was not posted, i will post it for lurker's sake:
It must be executed before anything that outputs text, like echo, otherwise it will not work.
CSS Tricks has an explanation on http 301 redirects: http://css-tricks.com/snippets/htaccess/301-redirects/
BasictoPHP;1309999 wrote:Since the answer was not posted, i will post it for lurker's sake:
But after a long wait of answer from other member he/she got the answer before anybody post the solution here. By the way good answer but a bit late.
Try this code
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.new-url.com" );
Thank you for this answer...I am looking for this only...