.htacces tweaks, SSL serificats, WordPress Tweaks
RewriteCond %{HTTPS} off [OR]RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC]RewriteRule ^(.*)$ https://www.domain.com/$1 [L,R=301] Source: Forcing SSL and WWW using .htaccess – Stack Overflow
.htacces tweaks, Optimize WordPress, WordPress Tweaks
To add far future expires header to you WordPress site simply add this code to the .htaccess file <IfModule mod_expires.c> ExpiresActive on ExpiresDefault “access plus 1 month” ExpiresByType image/gif “access plus 1 month” ExpiresByType...
.htacces tweaks, Security, WordPress Tweaks
To be able to add new security layer in WordPress add those lines in the .htaccess file: #Block directory listing Options +FollowSymLinks -Indexes #Block URLS with base64 encoding RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR] #Block scripts...
.htacces tweaks, WordPress Tweaks
To be able to redirect all links from the old domain to new one you need to edit .htaccess file on the old domain like this: RewriteEngine on RewriteCond %{HTTP_HOST} ^old-domain.info [NC,OR] RewriteCond %{HTTP_HOST} ^www.old-domain.info[NC] RewriteRule ^(.*)$...
.htacces tweaks, SSL serificats, WordPress Tweaks
To force SSL / https:// on domain add those code to the .htaccess file: RewriteCond %{HTTPS} off # First rewrite to HTTPS: # Don’t put www. here. If it is already there it will be included, if not # the subsequent rule will catch it. RewriteRule .*...
.htacces tweaks, WordPress Tweaks
The following forces any http request to be rewritten using https. For example, the following code forces a request to http://example.com to load https://example.com. It also forces directly linked resources (images, css, etc.) to use https: RewriteEngine On...