Title: Htaccess : How To Redirect https to http ignoring one folder
Last modified: August 19, 2016

---

# Htaccess : How To Redirect https to http ignoring one folder

 *  [earthorg](https://wordpress.org/support/users/earthorg/)
 * (@earthorg)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/htaccess-how-to-redirect-https-to-http-ignoring-one-folder/)
 * Hi my friends,
 * I just tried to add the following htaccess rules to redirect all https urls (
   www and non www) (except /wp-admin folder and everything inside it) to http (
   non www). But when its added, it started to give me redirection loops! Know why
   its happening?
 * PS : Im also using w3Total Cache plugin and it have a lot of rewrite rules
 * RewriteEngine On
    RewriteBase / RewriteCond %{HTTPS} on RewriteCond %{HTTP_HOST}
   ^www\.(.*)$ [NC] RewriteRule ^(.*)$ [http://%1/$1](http://%1/$1) [R=301,L]
 * RewriteCond %{HTTPS} on
    RewriteCond $1 !^wp-admin/ RewriteRule ^(.*)$ [http://techhamlet.com/$1](http://techhamlet.com/$1)[
   R=301,L]
 * Thanks

The topic ‘Htaccess : How To Redirect https to http ignoring one folder’ is closed
to new replies.

## Tags

 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [HTTPS](https://wordpress.org/support/topic-tag/https/)
 * [redirect](https://wordpress.org/support/topic-tag/redirect/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [earthorg](https://wordpress.org/support/users/earthorg/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/htaccess-how-to-redirect-https-to-http-ignoring-one-folder/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
