Print Page | Close Window

Moving all files to Root

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=1846
Printed Date: 23-April-2025 at 4:46pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Moving all files to Root
Posted By: Jeya
Subject: Moving all files to Root
Date Posted: 24-July-2008 at 6:07pm
How can I move all the files inside of /productcart/pc/ folder to the Root of the website. (i.e. I want everything to look like this: http://www.mywebsite.com/viewcategories.asp

What code would I need to change?

It is better for SEO and just looks a lot better IMO.

Thanks!



Replies:
Posted By: Hamish
Date Posted: 24-July-2008 at 6:32pm
Hi take a look at the Wiki : http://wiki.earlyimpact.com/productcart/seo - wiki.earlyimpact.com/productcart/seo  

Links to moving to the root & - perhaps more relevant for you actually would be the redirects - which allow you to make URL's with SEO friendly content.



-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: Planetlava_com
Date Posted: 28-July-2008 at 6:10pm

I would think moving all of the files to the root would be quite a difficult task, especially since a lot of the pages in the pc directory include files in higher level directories and not just other files in the pc directory.

You would have to restructure the folders and change all of the files to reference the correct path.
 
Regards,
Tbone
 


Posted By: carstone
Date Posted: 29-July-2008 at 8:52am
This has also been an a bit of a bug to me, too, although I can't adequately explain why. PC is pretty much the only cart I have looked at that has the store several folders down the folder tree and I haven't figured out why. I agree that it "looks better" to have them up at or near the root. It just doesn't "feel" right", but if it doesn't matter to the search engines, I guess I shouldn't fret it. The really big companies frequently do that, but I always assumed they purposefully installed their store in lower folders. Hmmm.


Posted By: benpate
Date Posted: 03-September-2008 at 1:36am
I have implemented this but regret doing so as its a night mare to update. I would suggest using the seo mod from productcart because at least you know they will update. One of the things I had to do was make EI's relative urls absolute.

For example, default link looks like this, "<a href="viewprd.asp" and changed to this <a href="<%=scAbs%>viewprd.asp" the variable scAbs is stored in the storeconstants.asp file and just adds the full path to the relative url making it an absolute. You have to go in and change every occurence like this or else your links will break.


Posted By: Stuck
Date Posted: 04-September-2008 at 7:56pm
I agree, and as Carstone mentioned....... I have always wondered why it was a secondary procedure to move ProductCart to the root folder rather than supplied like this "out of the box". It is certainly not a simple task for most to move everything to the root folder, and I cant understand why anyone would not want ProductCart setup in the root folder to begin with, at least the majority of users. But maybe I am missing something!



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