Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Jan 2019
    Location
    UK
    Posts
    101
    Plugin Contributions
    0

    Default will forcing http with htaccess mess up ultimate seo urls?

    Hi all

    I recently ran my site though an online seo checker and it recommended I make a change to force https on all users because "The www and non-www versions of your URL are not redirected to the same site." I thought my configure php files did this already but if you open an http: link it does not redirect to https:

    The seo checker is recommending I add the following to my htaccess file, but does anyone know if this will cause issues with the multiple rewrite rules that ultimate seo plugin has already added to my htaccess?

    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^thegluepeople.co.uk$
    RewriteRule ^(.*)$ https://thegluepeople.co.uk/$1 [R=301,L]

    Thanks

    Jon

  2. #2
    Join Date
    Jan 2019
    Location
    UK
    Posts
    101
    Plugin Contributions
    0

    Default Re: will forcing http with htaccess mess up ultimate seo urls?

    typo in thread title, forcing https is what I am trying to do, not forcing http

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,507
    Plugin Contributions
    88

    Default Re: will forcing http with htaccess mess up ultimate seo urls?

    Quote Originally Posted by CunningStunt2 View Post
    Hi all

    I recently ran my site though an online seo checker and it recommended I make a change to force https on all users because "The www and non-www versions of your URL are not redirected to the same site." I thought my configure php files did this already but if you open an http: link it does not redirect to https:

    The seo checker is recommending I add the following to my htaccess file, but does anyone know if this will cause issues with the multiple rewrite rules that ultimate seo plugin has already added to my htaccess?

    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^thegluepeople.co.uk$
    RewriteRule ^(.*)$ https://thegluepeople.co.uk/$1 [R=301,L]

    Thanks

    Jon
    That won't have any impact on USU's .htaccess additions. Just place those directives above the USU ones ... and be sure not to duplicate the RewriteEngine On directive!

  4. #4
    Join Date
    Jan 2019
    Location
    UK
    Posts
    101
    Plugin Contributions
    0

    Default Re: will forcing http with htaccess mess up ultimate seo urls?

    Thank you kindly, If there's one thing i've learned in my years of using ZenCart it is that the people who frequent this forum know waaaaaay more than I do about such things.

  5. #5
    Join Date
    Jan 2019
    Location
    UK
    Posts
    101
    Plugin Contributions
    0

    Default Re: will forcing http with htaccess mess up ultimate seo urls?

    If anyone is interested in such things, this is the site I used to give me guidance on where i'm failing at SEO
    https://www.seobility.net/en/seocheck/

  6. #6
    Join Date
    Jan 2019
    Location
    UK
    Posts
    101
    Plugin Contributions
    0

    Default Re: will forcing http with htaccess mess up ultimate seo urls?

    Weirdly, adding those lines to the top of my htaccess seems to have provided the required effect, but also broken my admin login. My admin login which was stored by lastpass is no longer accepting the password and I locked myself out for multiple failed logins, i'm now trying to reset the password via phpmyadmin :)

    My bookmark to the admin page is website/admin/login.php
    but its being rewritten website/admin/index.php?cmd=login
    Last edited by CunningStunt2; 17 Apr 2023 at 07:48 PM.

  7. #7
    Join Date
    Jan 2019
    Location
    UK
    Posts
    101
    Plugin Contributions
    0

    Default Re: will forcing http with htaccess mess up ultimate seo urls?

    I was able to reset my pw and log back into the admin backend, but only after remarking the new lines out of the htaccess file.

    Is there a way to exclude my super secret admin directory from the rewrite rules?

  8. #8
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,024
    Plugin Contributions
    61

    Default Re: will forcing http with htaccess mess up ultimate seo urls?

    Maybe just edit your Zen Cart configure files for all https:

    In
    includes/configure.php
    admin/includes/configure.php

    Set all defines with your url thegluepeople.co.uk to https & save.

    ~Melanie
    PRO-Webs, Inc. :: Recent Zen Cart Projects :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are NOT answered. You are welcome to contact us via our website for professional engagements.

  9. #9
    Join Date
    Jan 2019
    Location
    UK
    Posts
    101
    Plugin Contributions
    0

    Default Re: will forcing http with htaccess mess up ultimate seo urls?

    I think I already have both configures using https as default, which makes sure all of the internal links on the store point to https, but if someone lands on the site via an old external link then it allows them to view a non-https page, which I think is what the seo scanner is flagging as being a potential issue.

    The above changes to my htaccess does exactly what I need it to do (as I can open an http page and get automatically redirected to https) but it seems the rewrite rules are also messing with my ability to log in to the admin backend.

    I did see a setting in the ultimate urls configuration page called 'Limit alternate URLS to the following pages' so I tried adding login to the end of it, that did not let me log in to admin but it did rewrite the admin login url slightly different to how it was doing it before adding login to this field.

  10. #10
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,748
    Plugin Contributions
    0

    Default Re: will forcing http with htaccess mess up ultimate seo urls?

    IN cPanel go to the domains page and flip the switch for force https on the domain and let the server manage it
    Mike
    GeekHost - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Problems with Ultimate SEO URLs
    By TAIHCM in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 9 Dec 2012, 03:27 AM
  2. 1.3.8 Multilingual URLs with Ultimate SEO URLs?
    By vko82 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 29 Aug 2011, 01:07 PM
  3. Help! Page loads up fine,HTTP Response Code 404! Ultimate SEO URLs
    By jimdy in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 22 Nov 2010, 10:05 AM
  4. Ultimate SEO URLs is messing with my admin URLs
    By Chrome Orange in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 21 Jul 2009, 01:13 PM
  5. Ultimate SEO URLs - Can it be run on a server with no .htaccess?
    By z3n in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 29 Jan 2009, 05:54 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR