Support » Networking WordPress » redirect loop issue

  • Resolved eyadtab


    Hello, i am trying to change site address from HTTP to HTTPS but it give me redirect loop error when adding the HTTPS

Viewing 4 replies - 1 through 4 (of 4 total)
  • This often happens when there are still URL’s pointing to HTTP or when you have a redirect plugin running.

    Try first:

    – Use a plugin like “better search replace” and search and replace all occurrences of to
    – Check if you have a redirect rule in your .htaccess or if you use a redirect plugin that uses a conflicting redirect
    – Delete cookies

    Does that help?

    • This reply was modified 1 week, 6 days ago by WP STAGING.
    Thread Starter eyadtab


    When i have used better search replace it did some changes and then the site get into redirect loop so i had to change the url back from https to http in the site address URL.
    No I don’t use any redirect plugin.
    Here is the htacess file content

    # BEGIN WordPress Multisite
    # Using subdomain network type:
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    # END WordPress Multisite
    # php -- BEGIN cPanel-generated handler, do not edit
    # Set the “ea-php71” package as the default “PHP” programming language.
    <IfModule mime_module>
      AddHandler application/x-httpd-ea-php71 .php .php7 .phtml
    # php -- END cPanel-generated handler, do not edit

    I see.

    Do you use cloudflare? Then this article could be related for you:

    Also, have a look at this guide:

    Your .htaccess looks ok.

    If none of these suggestions are helpful, feel free to contact me at and refer to this forum entry here.

    I can have a personal look at your website, then.


    Thread Starter eyadtab


    Thanks for your respond, I was able to fix this issue by adding $_SERVER[‘HTTPS’]=’on’; to wp-config file

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.