Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Link to "Product's Webpage" (external HTML) redirects to store's welcome page


B&W_Off_Road

Recommended Posts

Posted

In the configuration screen for Categories/Products, I have edited the Product Information to include an external URL. The URL is valid (http://www.bwlasercutting.com/offroad/products.html).

 

The link in the preview screen (at "For more information, please visit this products webpage.") works fine. The link in the preview screen is http://www.bwlasercutting.com/offroad/products.html.

 

However, in the store's front end, the link is changed to: "http://www.bw-store.com/redirect.php?action=url&goto=www.bwlasercutting.com%2Foffroad%2Fproducts.html&osCsid=09a1efeabe651674588d5e3d51fe20a9" which does not work.

 

How can I get the redirect to use the URL that I provided?

Posted

The page will direct the customer to the exact same URL that is entered during the product creation process. If for some reason, the customer is not landing at the URL then the URL is being redirected by the DNS or through htaccess.

 

 

 

Chris

Posted

The page will direct the customer to the exact same URL that is entered during the product creation process. If for some reason, the customer is not landing at the URL then the URL is being redirected by the DNS or through htaccess.

 

 

Someone must have put a lot of work into the htaccess file, it is lengthy and difficult to read. I see a bunch of lines containing RewriteRule and RewriteCond. There is one line with redirect, it reads: "# Redirect domain.com to www.domain.com" That looks innocent enough. How would I modify the DNS redirection?

 

 

I should mention that using a link to the manufacture's website in the product's URL works, but not if I specify the product's html page.

Posted

In the configuration screen for Categories/Products, I have edited the Product Information to include an external URL. The URL is valid (http://www.bwlasercutting.com/offroad/products.html).

 

The link in the preview screen (at "For more information, please visit this products webpage.") works fine. The link in the preview screen is http://www.bwlasercu.../products.html.

 

However, in the store's front end, the link is changed to: "http://www.bw-store.com/redirect.php?action=url&goto=www.bwlasercutting.com%2Foffroad%2Fproducts.html&osCsid=09a1efeabe651674588d5e3d51fe20a9" which does not work.

 

How can I get the redirect to use the URL that I provided?

 

Firstly the products_url in products_description is not expected to have the scheme ( http:// ) it just needs the www.xxx.yyy

 

Secondly the url that you took from source is urlencoded. When the redirect is sent to redirect.php the url will be compared to that which is in the database ..

 

goto=www.bwlasercutting.com%2Foffroad%2Fproducts.html

 

is not the same as

 

goto=www.bwlasercutting.com/offroad/products.html

 

Therefore the redirect will not be actioned.

Posted

Firstly the products_url in products_description is not expected to have the scheme ( http:// ) it just needs the www.xxx.yyy

 

I tried all the different ways...

 

Secondly the url that you took from source is urlencoded when the redirect is sent to redirect.php the url will be compared to that which is in the database ..

 

[url="http://www.bw-store.com/redirect.php?action=url&goto=www.bwlasercutting.com%2Foffroad%2Fproducts.html"]goto=www.bwlasercutting.com%2Foffroad%2Fproducts.html[/url]

 

is not the same as

 

[url="http://www.bw-store.com/redirect.php?action=url&goto=www.bwlasercutting.com%2Foffroad%2Fproducts.html"]goto=www.bwlasercutting.com/offroad/products.html[/url]

 

Therefore the redirect will not be actioned.

 

 

Great, sounds like we're getting somewhere. Which of the above addresses is in the database? How do I format the URL to match? More generally, what do I need to do for the URL redirect to work?

 

Is it possible to find the file which contains the

[url="...]

code and remove the redirect altogether? Can I still specify a unique html page for each product?

 

Thanks for the help.

Posted

I tried all the different ways...

 

 

 

 

Great, sounds like we're getting somewhere. Which of the above addresses is in the database? How do I format the URL to match? More generally, what do I need to do for the URL redirect to work?

 

Thanks for the help.

 

Do you have a url rewriter like Ultimate Seo Urls series 2 or 5 installed? ( looks like you may have ).

Posted

In the products description you would just write the url as ..

 

www.bwlasercutting.com/offroad/products.html

 

You haven't answered the question regarding urls.

Posted

Do you have a url rewriter like Ultimate Seo Urls series 2 or 5 installed? ( looks like you may have ).

 

Not sure, someone else set up the store two years ago. I don't know what kind of add-ons are installed. Can you recommend a way to check the add-ons?

 

In the /includes/modules folder, there is only one additional file that is not in a fresh download of oscommerce-2.2rc2a. That file is a shipping_estimator.php.

 

Thanks

  • 8 months later...
Posted

It looks to me that the external links works only if you link to the manufacturers mainpage. ie. www.manufacturer.com

If the link goes to www.manufacturer.com/product it won't work.

 

The slash is replaced by %2F

 

 

KAa

Archived

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

×
×
  • Create New...