ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - Link Issues since moving site to a new server.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Link Issues since moving site to a new server.

 Post Reply Post Reply
Author
Message
bcrabtree View Drop Down
Groupie
Groupie
Avatar

Joined: 31-January-2008
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote bcrabtree Quote  Post ReplyReply Direct Link To This Post Topic: Link Issues since moving site to a new server.
    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
Back to Top
DevDuo View Drop Down
Newbie
Newbie


Joined: 17-May-2011
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote DevDuo Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Posted: 15-September-2011 at 1:59pm
Brian - you need to set the custom 404 handler according to this WIKI article:
 
 
Back to Top
bcrabtree View Drop Down
Groupie
Groupie
Avatar

Joined: 31-January-2008
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote bcrabtree Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
bcrabtree View Drop Down
Groupie
Groupie
Avatar

Joined: 31-January-2008
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote bcrabtree Quote  Post ReplyReply Direct Link To This Post 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 :)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.