Author Topic: help with .htaccess rewrite rules - FF add to cart problem  (Read 1828 times)

greenparrot

  • Beginner
  • *
  • Posts: 32
help with .htaccess rewrite rules - FF add to cart problem
« on: March 23, 2010, 11:29:26 am »

Recently we have encountered a problem with adding to cart in FF. This is what i know

http://www.iwsteamrailway.co.uk/shop.html?page=shop.browse&category_id=28 - works

http://www.iwsteamrailway.com/shop.html?page=shop.browse&category_id=28 - fails

http://iwsteamrailway.com/shop.html?page=shop.browse&category_id=28 - fails

http://iwsteamrailway.co.uk/shop.html?page=shop.browse&category_id=28 - fails

URLs missing the www part or with .com extension fail, i think, because FF doesn't like cross domain scripting. For the moment i have disabled the AJAX add to cart functionality. Now all URLs work, after adding to cart they are taken to shopping cart page.

As a better solution i need help with Rewrite rules. How do i add a rule to .htaccess so www is added to urls missing it and .com is converted to .co.uk?

Thanks for any help

Roy

greenparrot

  • Beginner
  • *
  • Posts: 32
Re: help with .htaccess rewrite rules - FF add to cart problem
« Reply #1 on: March 23, 2010, 13:20:46 pm »
I've got a little confused here

The website is hosted on iwsteamrailway.com, iwsteamrailway.co.uk is forwarded to it, the search engines have iwsteamrailway.co.uk listed.

So i still need a rule to add www to url but now, i think, i need .co.uk rewritten to .com

Roy

Forrest

  • Full Member
  • ***
  • Posts: 1972
  • Me and my baby
    • Web Developer