Question
How do I create rewrites using .htaccess files?
Answer
There are a variety of rewrites and examples that can be used for htaccess. We will focus on a few of them, not all
Non WWW to WWW
RewriteEngine on RewriteCond %{HTTP_HOST} ^domain.net RewriteRule ^(.*)$ http://www.domain.net/$1 [R=permanent,L]
non https to https
RewriteEngine on RewriteCond %{REQUEST_URI} ^/ [NC] RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^(.*)$ https://ltn-secure.net/$1 [R=301,L]
Still need help?
If you need further assistance than this entry provided, please, do open up a support ticket, we are here to help you out