Thread: URL issue

Page 1 of 3 123 LastLast
Results 1 to 10 of 30
  1. #1
    Join Date
    Dec 2010
    Posts
    66
    Plugin Contributions
    0

    Default URL issue

    Hi all,

    Just a quick question.

    In my browser i type

    http://www.mydomain.co.uk

    It loads fine, with no issues at all, then when i click on a product or any other link on the site it just goes to

    http://mydomain.co.uk/whatever

    Is there anyway to resolve this as i expect it will cause major issues when i come to putting my dedicated SSL on, and it most likley wont work for the entire site (as it has to be one or the other as far as im aware)

    Cheers

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

    Default Re: URL issue

    Try googling

    Code:
    htaccess add www

  3. #3
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: URL issue

    It loads fine, with no issues at all, then when i click on a product or any other link on the site it just goes to
    Make sure that the 'www' is in both of your configure.php files
    Code:
      define('HTTP_SERVER', 'http://www.mydomain.co.uk');
      define('HTTPS_SERVER', 'https://www.mydomain.co.uk');
    Then to globally force the www so that you get no duplicate content add to your .htaccess file
    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^www.ymydomain.co.uk$
    RewriteRule ^(.*)$ http://www.mydomain.co.uk/$1 [R=301]
    Replacing "mydomain.co.uk" with your actual domain name

  4. #4
    Join Date
    Dec 2010
    Posts
    66
    Plugin Contributions
    0

    Default Re: URL issue

    Quote Originally Posted by kobra View Post
    Make sure that the 'www' is in both of your configure.php files
    Code:
      define('HTTP_SERVER', 'http://www.mydomain.co.uk');
      define('HTTPS_SERVER', 'https://www.mydomain.co.uk');
    Then to globally force the www so that you get no duplicate content add to your .htaccess file
    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^www.ymydomain.co.uk$
    RewriteRule ^(.*)$ http://www.mydomain.co.uk/$1 [R=301]
    Replacing "mydomain.co.uk" with your actual domain name
    thanks for that.

    Where abouts will the .htaccess file need to be located?

    and im also asuming that the rewrite rule can be done with https:// too?!

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: URL issue

    Where abouts will the .htaccess file need to be located?
    The root of your ZenCart

    im also asuming that the rewrite rule can be done with https:// too?!
    Try it without as I believe it takes that into account - - besides this is so you do not get a penalty for duplicate content mostly or so your http pages can not be accessed without the www
    Your secure pages should not be indexed any way

  6. #6
    Join Date
    Dec 2010
    Posts
    66
    Plugin Contributions
    0

    Default Re: URL issue

    Quote Originally Posted by kobra View Post
    The root of your ZenCart


    Try it without as I believe it takes that into account - - besides this is so you do not get a penalty for duplicate content mostly or so your http pages can not be accessed without the www
    Your secure pages should not be indexed any way
    I did what you said in your earlier post. Worked perfectly.

    Many thanks for that.

    Will let you know how i get on when my SSL has come through.

  7. #7
    Join Date
    Dec 2010
    Posts
    66
    Plugin Contributions
    0

    Default Re: URL issue

    Slight issue, when i have uploaded it and go to log into my site via admin section it wont let me login

    IE.

    When the correct username and password are entered it just refreshes itself and both boxes go blank.

    When i delete the .htaccess file i can then log in.

    should this happen ??

    does my domain name need to be replaced in both sections ( i asumed this already) or does the

    RewriteCond %{HTTP_HOST} !^www.ymydomain.co.uk$

    need to be my reseller/hosting company im with?
    slightly confused now

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: URL issue

    When i delete the .htaccess file i can then log in.

    should this happen ??

    does my domain name need to be replaced in both sections ( i asumed this already)
    No that is not how it should work
    The admin by default has it's own htaccess
    Are you using some SEO rewrite?

    What all is in the htaccess that is at the root?

    need to be my reseller/hosting company im with?
    No to this also - - You do not use anything related to them to load your site do you?

  9. #9
    Join Date
    Dec 2010
    Posts
    66
    Plugin Contributions
    0

    Default Re: URL issue

    Quote Originally Posted by kobra View Post

    What all is in the htaccess that is at the root?
    I dont understand what you mean?


    Should i look at the .htaccess file in the admin section too ?

  10. #10
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: URL issue

    I dont understand what you mean?
    What is the contents of the root htaccess


    Should i look at the .htaccess file in the admin section too ?
    No if you haven't messed with it leave it alone

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Ceon url mapping url issue
    By Indiasupplement in forum General Questions
    Replies: 1
    Last Post: 22 Sep 2013, 01:23 AM
  2. URL issue
    By gmartakis in forum General Questions
    Replies: 1
    Last Post: 27 Feb 2013, 03:25 PM
  3. 2 page URL in category issue with Simple SEO URL Manager
    By msladybug02 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 19 Nov 2010, 10:33 PM
  4. Troubleshooting url issue after adding URL alias in hosting account
    By sjbmaine in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 4 Feb 2009, 08:51 PM
  5. website url issue
    By lucianman in forum General Questions
    Replies: 6
    Last Post: 27 Jul 2006, 07:16 PM

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