htaccess

Stop Hotlinking With HTAccess – Resources

Resources to stop Hotlinking via HTAccess Preventing hot linking of images and other file types – JavaScriptKit RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www.)?mydomain.com/.*$ [NC] RewriteRule .(gif|jpg|js|css)$ – [F] Prevent hotlinking with a .htaccess file – MediaTemple RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www.)example.com/.*$ [NC] RewriteRule .(gif|jpg|jpeg|bmp|zip|rar|mp3|flv|swf|xml|php|png|css|pdf)$ – [F] Smarter Way To Prevent …

Stop Hotlinking With HTAccess – Resources Read More »

301 Redirect Htaccess Rules

How to force HTTPS using the .htaccess file – InMotion Hosting To force all web traffic to use HTTPS insert the following lines of code in the .htaccess file: RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.example.com/$1 [R,L] Note: Be sure to replace www.example.com with your actual domain name. Setting up Permanent 301 Redirects – …

301 Redirect Htaccess Rules Read More »

Scroll to Top