Advertisement
niammuddin

htaccess wordpress redirect to SSL

Oct 29th, 2017
482
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. # BEGIN WordPress
  2. <IfModule mod_rewrite.c>
  3. RewriteEngine On
  4. RewriteBase /
  5. RewriteCond %{SERVER_PORT} 80
  6. RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
  7. RewriteRule ^index\.php$ - [L]
  8. RewriteCond %{REQUEST_FILENAME} !-f
  9. RewriteCond %{REQUEST_FILENAME} !-d
  10. RewriteRule . /index.php [L]
  11. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement