If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / having all links found on search sites, etc forward over to new domain

having all links found on search sites, etc forward over to new domain

Started by willie_bee on 22 Apr 2011, 11:36 PM · Views: 799

Results 1 to 3 of 3
22 Apr 2011, 11:36 PM
#1
willie_bee avatar

willie_bee

Zen Follower

Join Date:
Mar 2011
Posts:
386
Plugin Contributions:
0

Post #1 by willie_bee

Just wondering on currently using oscommerce and there are links all over google of products on our site. We'd liek to see about when someone clicks on those links it takes them straight to our new domain name.

i.e. found on google, http://oldname.com/products/adfaskj.html

user clicks and it takes them to

http://newdomainname.com

tia!

don't mess with willie bee. i may go crazy on you.

22 Apr 2011, 11:45 PM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,908
Plugin Contributions:
23

Post #2 by dbltoe

If you still have the old domain, you could do a custom 404 that would link to your new site and allow the user to search the new site for the item.

Something like> ```html

<link rel="stylesheet" type="text/css" href="http://NEWSITE.COM/includes/templates/CUSTOM/css/stylesheet.css" /> <img src="http://NEWSITE.COM/includes/templates/CUSTOM/images/logo.gif" alt="NEWSITE.COM" border="0"> <h3>We're sorry. The information you are looking for may have changed.<br />We've recently changed our site location to better serve our customers.</h3> <h4>Hopefully the system has suggested a link for you to follow.<br />If not, please use the search block to search our site for your item(s).</h4> <style type="text/css"> #goog-wm { } #goog-wm h3.closest-match { } #goog-wm h3.closest-match a { } #goog-wm h3.other-things { } #goog-wm ul li { } #goog-wm li.search-goog { display: block; } </style> <script type="text/javascript"> var GOOG_FIXURL_LANG = 'en'; var GOOG_FIXURL_SITE = 'http://NEWSITE.COM/'; </script> <script type="text/javascript" src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script> ```saved to the root as 404.shtml should do the trick. Of course, you'll need to change the NEWSITE.COM and CUSTOM to match your particular case. The first two lines are to attempt to make the page follow the css and images of the new site.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

15 Nov 2011, 6:15 AM
#3
willie_bee avatar

willie_bee

Zen Follower

Join Date:
Mar 2011
Posts:
386
Plugin Contributions:
0

Post #3 by willie_bee

Thanks for your reply and sorry for the late reply.

So you think this is a better route than to just go to our domain registrar and just forward the domain name to our new site?

don't mess with willie bee. i may go crazy on you.