niammuddin icon

htaccess wordpress redirect to SSL

niammuddin | PRO | 10/29/17 11:39:26 AM UTC | 0 ⭐ | 764 👁️ | Never ⏰ | []
text |

300 B

|

None

|

0 👍

/

0 👎

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] 
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Comments