Title: 301 redirect from http to https
Last modified: August 18, 2016

---

# 301 redirect from http to https

 *  [silly2](https://wordpress.org/support/users/silly2/)
 * (@silly2)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/301-redirect-from-http-to-https/)
 * I have just installed a SSL certificate on my site. I changed my address from
   http to https inder the admin>general options, but now my PR does not exist. 
   How do I set up a 301 redirect from http to https in my .htaccess file. I am 
   not savy on this so please be nice. This is my .htaccess file now….
 * # BEGIN WordPress
    <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond%{
   REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.
   php [L] </IfModule>
 * # END WordPress

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [pho](https://wordpress.org/support/users/pho/)
 * (@pho)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/301-redirect-from-http-to-https/#post-473709)
 * I am looking for an answer for the same problem. To make things worse, I would
   like to redirect only a couple of pages in my site.
 *  [places](https://wordpress.org/support/users/places/)
 * (@places)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/301-redirect-from-http-to-https/#post-473710)
 * RewriteEngine On
    RewriteCond %{HTTPS} !=on RewriteRule ^(.*) [https://%](https://%){
   SERVER_NAME}/$1 [R,L]
 *  [pho](https://wordpress.org/support/users/pho/)
 * (@pho)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/301-redirect-from-http-to-https/#post-473711)
 * It works to redirect a whole http site to a https site.
 * Is it possible to redirect only one or two pages??
 *  [places](https://wordpress.org/support/users/places/)
 * (@places)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/301-redirect-from-http-to-https/#post-473712)
 * If you just want to redirect one or two pages set the rewrite rules like
 * RewriteRule ^page1(.*) [https://%](https://%){SERVER_NAME}/page1$1 [R,L]
 *  [pho](https://wordpress.org/support/users/pho/)
 * (@pho)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/301-redirect-from-http-to-https/#post-473713)
 * Yes! It works!! Thank you, places!!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘301 redirect from http to https’ is closed to new replies.

## Tags

 * [HTTP](https://wordpress.org/support/topic-tag/http/)
 * [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/)
 * 5 replies
 * 3 participants
 * Last reply from: [pho](https://wordpress.org/support/users/pho/)
 * Last activity: [19 years, 5 months ago](https://wordpress.org/support/topic/301-redirect-from-http-to-https/#post-473713)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
