Welcome to WebmasterWorld Guest from 54.196.232.162

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

.htaccess and avoiding urlencoding

Question Marks Turning Into %3f

     
6:23 pm on Apr 5, 2007 (gmt 0)

New User

5+ Year Member

joined:Apr 5, 2007
posts:1
votes: 0


I've recently migrated a client from a static e-commerce site using PayPal to an osCommerce solution, and for the sake of search engine ranking I'm trying to use .htaccess to redirect from her static pages from before to the PHP pages of now.

The line in my .htaccess that it causing problems for me is the following:

RedirectMatch permanent /pages/foo_bar_yadda.html /product_info.php?products_id=73

When I go to foo_bar_yadda.html I get my 404 page, as it tried to go to /product_info.php%3fproducts_id=73

I've researched over at the osCommerce site, as well as Googled to a point of unhealthiness.

There are quite a few of these that I need to do, and I'd rather not do redirects within the old pages, as I understand that the search engines don't take too kindly to such shenanigans.

Any help would be greatly appreciated.

Thanks,
David

6:58 pm on Apr 5, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
posts:25430
votes: 0


Internally rewrite, do not externally redirect. Library thread: [webmasterworld.com...]

Jim