Title: .htaccess file change to force https:// site wide
Last modified: August 22, 2016

---

# .htaccess file change to force https:// site wide

 *  [bcummins1](https://wordpress.org/support/users/bcummins1/)
 * (@bcummins1)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/htaccess-file-change-to-force-https-site-wide/)
 * My current .htaccess file looks like this.
 * My whole site is https://
 * How do I set up the redirect in my .htaccess file
 * It currently looks like this.
 * # 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
 * What should I change?

Viewing 1 replies (of 1 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/htaccess-file-change-to-force-https-site-wide/#post-5643094)
 * You won’t need to. If you set the two URLs at Settings -> General to use HTTPS,
   WordPress will handle redirecting all non-HTTPS traffic for you.

Viewing 1 replies (of 1 total)

The topic ‘.htaccess file change to force https:// site wide’ is closed to new replies.

## Tags

 * [http https](https://wordpress.org/support/topic-tag/http-https/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/htaccess-file-change-to-force-https-site-wide/#post-5643094)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
