Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Redirecting to https://www.

Discussion in 'Misc WordPress Requests' started by a2hostingrj, Oct 12, 2017.

  1. a2hostingrj

    Guest

    Reply To: Redirecting to https://www., by a2hostingrj

    A simple way to redirect to HTTPS is by using a plugin:


    Another way is by adding this to the .htaccess:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    <IfModule mod_rewrite.c>
    RewriteCond %{HTTPS} !=on
    RewriteRule ^(.*) https://%{SERVER_NAME}/$1 [R,L]
    </IfModule>

    Of course, you must change the site URL in WordPress settings.

    Reply To: Redirecting to https://www.
     
    #1

Share This Page

Web Hosting