Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Broken links when browsing categories with more than 1 page HELP!


Benjjj6

Recommended Posts

Hi

 

When I view a category with more than one page and click "Next Page" or a Page Number I get a standard address not found error due to the fact that it is linking to:

 

http://www.mysite.comindex.php/?page=2&sort=2a&manufacturers_id=22

 

rather than:

 

http://www.mysite.com/index.php/?page=2&sort=2a&manufacturers_id=22

 

 

I am 99% sure that this must have happened in the last few days as I have only just noticed this problem. The only change I have recently made is this one, afte rmy host upgraded to php 5.

 

 

What could be the problem? how do I fix it?

 

Thanks,

 

Ben

Link to comment
Share on other sites

I've managed to temporarily fix the problem my changing my 1 line in my configure.php file from this:

 

define('HTTP_SERVER', 'http://www.mysite.co.uk'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'http://www.mysite.co.uk'); // eg, https://localhost - should not be empty for productive servers

to this:

 

define('HTTP_SERVER', 'http://www.mysite.co.uk'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'http://www.mysite.co.uk/'); // eg, https://localhost - should not be empty for productive servers

(notice the '/' after the HTTPS URL)

 

Why should this make any difference whatsoever, as I am not using an SSL on any pages as I dont have one installed?

Link to comment
Share on other sites

Check your configure.php

 

what do you have for

 

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/catalog/');

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Hi

 

My shop's installed in the root and I don't have an SSL installed so I just have:

 

define('DIR_WS_HTTP_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '');

 

But I really can't imagine why this is happening now. Maybe something to do with my host upgrading to php 5? As surely I would have noticed this problem before.

Link to comment
Share on other sites

Have you checked your config file? That is where I would start.

 

Sorry for the Johnny come lately... guess it was an old tab.

Link to comment
Share on other sites

Hi

 

My shop's installed in the root and I don't have an SSL installed so I just have:

 

define('DIR_WS_HTTP_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '');

 

But I really can't imagine why this is happening now. Maybe something to do with my host upgrading to php 5? As surely I would have noticed this problem before.

 

define('DIR_WS_HTTP_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '');

 

those should be the same

 

define('DIR_WS_HTTP_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');

 

Then REMOVE your previous addition of / to the define('HTTPS_SERVER'

Link to comment
Share on other sites

Thankyou Robert!! :)

 

After your suggestion it is all back to normal now :)

 

Do you think this was related to the upgrade to php5?

 

No it was related to your configure settings.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...