Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2012
    Posts
    2
    Plugin Contributions
    0

    help question Redirection and duplicity of webpage

    Hieverybody, I hope someone can help me.

    I’ve beentrying to redirect my shop from the address smellsonice.co.uk to www.smellsonice.co.uk. because of the duplicity problem. After the .htaccess file has been configurated I’ve lost the access to the admin section ofZenCart and customers could not add the goods into the shopping baskets.

    Could someone advise me how to sort out the duplicity issue and the configuration of the .htaccessfile while avoiding the above issue?

    Thanks

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: Redirection and duplicity of webpage

    You don't say what you've placed in your .htaccess file, but here's a copy of what's in mine that does the same thing. Note that I've got a bit in there so that my .htaccess works properly when I'm in my testing (i.e. localhost) environment, too:

    Code:
    # If the request comes in as smellsonice.co.uk, add the www. prefix
    #
    RewriteCond %{HTTP_HOST} !(^www\.smellsonice\.co\.uk$|^localhost$) [NC]
    RewriteRule ^(.*)$ http://www.smellsonice.co.uk/$1 [R=301,L]
    P.S. If you're really still on v1.3.7, you really, really need to upgrade!
    Last edited by lat9; 30 Nov 2012 at 01:45 PM. Reason: Add P.S.

  3. #3
    Join Date
    Nov 2012
    Posts
    2
    Plugin Contributions
    0

    Default Re: Redirection and duplicity of webpage

    Thanks for your answer.
    I tried to add code to my .htaccess file. Redirection worked perfectly but after this change I was not able to add any products to my shopping cart. When I tried to add anything to shopping cart only inscription " Your shopping cart is empty." was appeared.

  4. #4
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Redirection and duplicity of webpage

    Quote Originally Posted by PK76 View Post
    Thanks for your answer.
    I tried to add code to my .htaccess file. Redirection worked perfectly but after this change I was not able to add any products to my shopping cart. When I tried to add anything to shopping cart only inscription " Your shopping cart is empty." was appeared.
    Make sure HTTP_SERVER and HTTPS_SERVER point to the new hostname. Otherwise you are causing extra 301s and may lose parameters from the requests.
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

 

 

Similar Threads

  1. v137 Login errors and webpage errors
    By missyshoes in forum General Questions
    Replies: 3
    Last Post: 14 Dec 2012, 04:36 PM
  2. Replies: 2
    Last Post: 5 Aug 2011, 01:49 PM
  3. Signon and password pre-fileld on webpage
    By gprit in forum General Questions
    Replies: 2
    Last Post: 23 Sep 2009, 10:02 AM
  4. Replies: 2
    Last Post: 11 Jul 2008, 03:36 PM
  5. Cookies and redirection
    By kusogaki in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 12 Feb 2007, 01:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg