Linux

How To Redirect To SSL Using Apache’s .htaccess File?

Friday, August 31st, 2007

# If we have neither mod_ssl nor mod_rewrite # then let's simply deny the access: deny from all # If we have mod_rewrite # then let's redirect to https version of requested page RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} # else (if we have mod_ssl) # let's make sure that we require SSL SSLRequireSSL # Finally, if anything went ...

Setting 301 Redirect - Complete Guide

Thursday, August 30th, 2007

301 Redirect is interpreted as "permanently moved". Setting a 301 redirect is the best and Search Engine Friendly method for redirecting a webpage. By using 301 redirect, you can move your files around, change file names and redirect your pages without losing your search engine rankings. 301 Redirect in Apache - ...