Ready Monetized Wordpress Website


Monday, June 10, 2019

Need advice on .htaccess

So i want to direct all http://, http://www and www to https://

I hacked 2 codes together to make it work, and it does just fine, but I would like to know if there is a better way to write this than what I have. Also just to double check this isnt going to do something funky to my SEO or something.

What I have:

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} ^ [NC] RewriteRule ^(.*)$$1 [L,R=301] RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] </IfModule> 

I appreciate any help on the matter. :)

submitted by /u/JakeOfTheJungle
[link] [comments]

from web_design

No comments:
Write Your Comments

Ready Monetized Blogger Gaming Website