Print Page | Close Window

Link Issues since moving site to a new server.

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=4726
Printed Date: 13-July-2025 at 6:40am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Link Issues since moving site to a new server.
Posted By: bcrabtree
Subject: Link Issues since moving site to a new server.
Date Posted: 09-September-2011 at 7:42pm
I recently moved one of my sites to a new server and I'm getting some link 404 errors on a few relative links as well as links to my custom content pages.

On my old server, links to custom content pages looked like this:
<a href="http://www.website.com/shop/pc/about-d1.htm">About</a>

Now that returns a 404 error and only this code works:
<a href="http://www.website.com/shop/pc/viewContent.asp?idpage=1">About</a>

Does anyone know how I can get those links back to the SEO friendly version?

Also for my logout link which looks like this:
<a href="CustLO.asp">Log Out</a>

It doubles up the shop and pc directories. So instead of the url looking like this:
http://www.website.com/shop/pc/default.asp?action=clear
it looks like this:
http://www.website.com/shop/pc/shop/pc/default.asp?action=clear
Causing a 404 error.

Does anyone have any idea why that would be happening?

Thanks



Replies:
Posted By: DevDuo
Date Posted: 15-September-2011 at 1:53pm
Did you set your server to redirect 404's to the appropriate file in ProductCart?

Hard to say on the second question... Could be a myriad of things.

-Ted


-------------
http://www.devduo.com - Website Design - Pittsburgh, PA - DevDuo


Posted By: Greg Dinger
Date Posted: 15-September-2011 at 1:59pm
Brian - you need to set the custom 404 handler according to this WIKI article:
http://wiki.earlyimpact.com/productcart/seo-urls" rel="nofollow - http://wiki.earlyimpact.com/productcart/seo-urls
 
 


-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: bcrabtree
Date Posted: 15-September-2011 at 10:28pm
Ok cool, I knew it was something easy like that, I just forgot how I did it originally.

What about the doubled up directories issue I'm having on log out? It also happens when you clear the cart. The first issue I could live with... This one is driving me crazy.

Cheers.


Posted By: Greg Dinger
Date Posted: 15-September-2011 at 10:38pm
dunno.  first place I'd look is at home page settings on general settings tab.  seems there is a / missing somewhere causing a script to want to look relative to current location rather than relative to the root.

-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: bcrabtree
Date Posted: 15-September-2011 at 11:09pm
GOT IT!

Both issues have been solved. The issue was in my storeconstants.asp file. When we switched servers we also switched domain names and for some reason scStoreURL was entered as: http://www.website.com/shop/pc/ instead of just: http://www.website.com/

Thanks for the point in the right direction!

Cheers :)



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net