Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

session issue for image files


newtech

Recommended Posts

Posted

When I click on an image to see a larger view I get the following error:

The requested content cannot be opened, try again.

 

When I look at my server error log it is because the URL for the larger image is showing as:

shop/images/fvsvdh-v-bolt-pullover-hoodie-900.jpg/osCsid/8336gfnknkr9nngj237i83uac0

 

The problem of course is that the following is being apended to the image URL:

/osCsid/8336gfnknkr9nngj237i83uac0

 

I have figured out how this happening but do not know how to stop it from happening.

 

If a person comes to the store via www.company.com/shop there is no problem.

However, if a person comes to the store via http://shop.company.com there is a problem.

 

We have a redirect for http://shop.company.com. The reason for the redirect is that http://shop.company.com was with another online store at one time.

The way we are doing the redirect is via our cpanel. We are just saying that shop.company.com points to html/shop.

 

How can I make it so that when people come from http://shop.company.com there is not a session append?

 

(Note URLs are not real, I do not want my info public.)

Posted

The image links are all wrong.

 

In your Admin, set 'Use Search-Engine Safe URLs (still in development)' to false.

 

Save it.

 

Sometimes you have to set 'Use Cache' to false (or clear the cache) to see any change.

 

See if that helps.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

I did not think this would work. But it did. What I don't understand is how it worked. Please help me understand.

The search engine friendly at true did not affect www.mycompany.com/shop, but obviously affected http://shop.mycompany.com being redirected to www.mycompany.com/shop.

 

The issue was the redirect was adding a session id to the URLs. How is session ids connected with search engine friendly being true?

Posted

With it turned on you get (as you posted before):

 

When I look at my server error log it is because the URL for the larger image is showing as:

shop/images/fvsvdh-v-bolt-pullover-hoodie-900.jpg/osCsid/8336gfnknkr9nngj237i83uac0

With it off you get:

 

shop/images/fvsvdh-v-bolt-pullover-hoodie-900.jpg?osCsid/8336gfnknkr9nngj237i83uac0

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Archived

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

×
×
  • Create New...