Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Dynamically Generated Links Not Working After Move


jaatendi

Recommended Posts

Posted

I moved an oscommerce site from one server to another, including moving the files, setting up a new db and importing the data, and modifying the configure.php files. Its working except for some issues with links. I hardcoded into the header.php links to domain.com/accessories-c-22.html, which was working on the old server. On the new server I get a 404 Not Found page when I click on the link. Is there a way to get oscommerce to recreate its dynamically generated links?

Posted

I moved an oscommerce site from one server to another, including moving the files, setting up a new db and importing the data, and modifying the configure.php files. Its working except for some issues with links. I hardcoded into the header.php links to domain.com/accessories-c-22.html, which was working on the old server. On the new server I get a 404 Not Found page when I click on the link. Is there a way to get oscommerce to recreate its dynamically generated links?

 

Hi -c-22.html in the link shows that there's an SEO add-on in operation - have a look in the htaccess for something like

 

Options +FollowSymLinks
RewriteEngine On
# RewriteBase instructions
# Change RewriteBase dependent on how your shop is accessed as below.
# http://www.mysite.com = RewriteBase /
# http://www.mysite.com/catalog/ = RewriteBase /catalog/
# http://www.mysite.com/catalog/shop/ = RewriteBase /catalog/shop/
# Change the following line using the instructions above

RewriteBase /YOU HAVE TO CHANGE ME/

 

if YOU HAVE TO CHANGE ME set to the wrong folder it would cause your problem - it should be '/' for root folder or /foldername/ if the store is in a sub-folder

 

You can check this - if the url domain.com?index.php?cPath=22 works then it's the rewrite

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...