Title: redirect loop issue
Last modified: May 5, 2022

---

# redirect loop issue

 *  Resolved [eyadtab](https://wordpress.org/support/users/eyadtab/)
 * (@eyadtab)
 * [4 years ago](https://wordpress.org/support/topic/redirect-loop-issue-3/)
 * 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)

 *  [WP STAGING](https://wordpress.org/support/users/wp-staging/)
 * (@wp-staging)
 * [4 years ago](https://wordpress.org/support/topic/redirect-loop-issue-3/#post-15617278)
 * 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” [https://wordpress.org/plugins/better-search-replace/](https://wordpress.org/plugins/better-search-replace/)
   and search and replace all occurrences of [http://example.com](http://example.com)
   to [https://example.com](https://example.com)
    – 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 4 years ago by [WP STAGING](https://wordpress.org/support/users/wp-staging/).
 *  Thread Starter [eyadtab](https://wordpress.org/support/users/eyadtab/)
 * (@eyadtab)
 * [4 years ago](https://wordpress.org/support/topic/redirect-loop-issue-3/#post-15619351)
 * 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: https://wordpress.org/support/article/htaccess/#multisite
   
       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
       </IfModule>
       # php -- END cPanel-generated handler, do not edit
       ```
   
 *  [WP STAGING](https://wordpress.org/support/users/wp-staging/)
 * (@wp-staging)
 * [4 years ago](https://wordpress.org/support/topic/redirect-loop-issue-3/#post-15619412)
 * I see.
 * Do you use cloudflare? Then this article could be related for you: [https://support.cloudflare.com/hc/en-us/articles/115000219871-Troubleshooting-redirect-loop-errors-](https://support.cloudflare.com/hc/en-us/articles/115000219871-Troubleshooting-redirect-loop-errors-)
 * Also, have a look at this guide:
    [https://really-simple-ssl.com/my-website-is-in-a-redirect-loop/](https://really-simple-ssl.com/my-website-is-in-a-redirect-loop/)
 * Your .htaccess looks ok.
 * If none of these suggestions are helpful, feel free to contact me at [https://wp-staging.com/support/](https://wp-staging.com/support/)
   and refer to this forum entry here.
 * I can have a personal look at your website, then.
 * Cheers
    René
 *  Thread Starter [eyadtab](https://wordpress.org/support/users/eyadtab/)
 * (@eyadtab)
 * [4 years ago](https://wordpress.org/support/topic/redirect-loop-issue-3/#post-15620201)
 * 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)

The topic ‘redirect loop issue’ is closed to new replies.

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 4 replies
 * 2 participants
 * Last reply from: [eyadtab](https://wordpress.org/support/users/eyadtab/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/redirect-loop-issue-3/#post-15620201)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
