Prevent hotlinking using htaccess

January 20, 2020 0 Comments

Hotlink protection using htaccess One of the most beneficial use of htaccess is to prevent hotlinking of images , videos and other documents on your website. You can use htaccess to prevent hotlinking of your media and other documents. What is hotlinking? It means to display an image on a website by linking to the …

How to use apache ErrorDocument directive in htaccess ?

January 16, 2020 0 Comments

ErrorDocument directive ErrorDocument directive is part of Apache core module . In this article you will learn how to use ErrorDocument in htaccess to manipulate your broken or forbidden URLs. To use this directive in an htaccess file you do not need to do anything . This directive is enabled on Apache server by default. …

How to block google yahoo bing and other search engine bots using htaccess ? | mod-rewite tutorial | amitoverflow blog

December 13, 2019 0 Comments

Block search engine bots using htaccess With htaccess it is possible to block search crawler bots such as Google , yahoo and bing bot or other web crawlers from accessing your website. Block search engine bots using htaccess If you don’t want your website to be visible to search engines then you can easily deny …

How to get rid of Rewrite loop error in htaccess file ? Rewrite loop error solution

December 12, 2019 0 Comments

How to fix RewriteLoop error in htaccess RewriteLoop is when a file or URL path infinitely maps to itself using RewriteRule directive in htaccess. Your webserver returns one of the following 500 error status when this error occur on the Apache server : HTTP Error 500 by infinite loop “The request exceeded the maximum 10 …

Rewriting a complax and long URL using htaccess | mod-rewite tutorial

December 5, 2019 0 Comments

Rewriting a complax URL using htaccess In this post I will show you how to rewrite a long URL that has multiple query string perameters. This two minutes read post is for beginners who wish to learn Apache URL rewriting. We will convert the following URL : To Our original URL contains …

What is RewriteCond and how to use it ? Apache mod-rewite tutorial |amitoverflow blog

December 4, 2019 0 Comments

What is RewriteCond in mod-rewite In this article I will give you a quick overview of what RewriteCond is and How it is used with RewriteRules. RewriteCond is an apache mod-rewite directive which is used for conditional URL rewriting on Apache server. We use RewriteCond along with RewriteRule

How to use htaccess to remove html file extension from urls -mod-rewite guide

December 3, 2019 0 Comments

htaccess rule to remove .html file extension from URLs A 100% working and tested rule to trim .html from URLs . You can just copy and paste it to your .htaccess or server.config files on Apache server. RewriteEngine on RewriteCond %{THE_REQUEST} /([^.]+).html [NC] RewriteRule ^.+$ /%1 [R=301,L] RewriteCond %{REQUEST_FILENAME}.html -f RewriteRule ^/?(.+)/?$ /$1.html [L] The …

htaccess RewriteRule to deny access to opera mini browser |amitoverflow blog

December 2, 2019 0 Comments

A simple rewrite rule to forbid requests from opera mini browser. If your website is designed for well known browsers like Chrome, sfari etc and you don’t want visitors to access your website using Opera mini browser , you can use the following RewriteRule in your htaccess or server.config file to block access to this …

Redirect domain from http to https with Apache mod-rewite and htaccess| 100% working code examples you can just copy and paste

November 27, 2019 0 Comments

When we enable SSL on our domain the next important stap we need complete is http “urls redirection to https” .  We need to redirect all our http URLs to our current HTTPS scheme in order to maintain the SEO rank on search engines and to avoid SSL mixed contents warning that often appears in …

removing .php extension from URLs using htaccess or server.config file| RewriteRule explained

November 25, 2019 0 Comments

We all know that a URL without file extension at the end looks clean and easy to remember. Removing file extension so that the URL can look preety and clean is easy with mod-rewite An apache module that allows its users to rewite/Redirect  and manipulate website  URLs.  Mod-rewrite comes pre installed with Apache server so …