Deny access to multiple ip addresses using RewriteRule in htaccess

June 26, 2019 0 Comments

Last Updated on June 26, 2019 by amitoverflow1 With a RewriteRule directive you can deny access to a specific IP address or multiple ip addresses at ones. If you need to deny access to a visitor IP address you can use a RewriteRule directive in htaccess file that checks the visitor IP address and blocks …

How to keep your Twitter account safe and away from suspension

June 23, 2019 0 Comments

Last Updated on April 10, 2021 by amitoverflow1 Twitter user accounts are often suspended when those accounts do not follow twitter rules and continue performing invalid account activities . Twitter account suspension is of two types Temporary suspension Permanent suspension Temporary account suspension aka “Account Locked” is a normal suspension on your account. This account …

How to create a Google search engine friendly page? Top ranked page ingoogle search results

June 22, 2019 0 Comments

Last Updated on June 22, 2019 by amitoverflow1 Google search engine gives an extra priority to top ranked pages by showing them at the top of search results with a dedicated layout. A top ranked page with a specific keyword often shows at the top of search results. When you search a keyword or phrase …

How to redirect a URL with Query String apache htaccess

June 21, 2019 0 Comments

Last Updated on June 21, 2019 by amitoverflow1 Redirect URL query string using htaccess In this post we will learn how to redirect a URL with query string using RewriteRule directive in htaccess. Query string represents URL part that is after ? character in URL. A URL with query string looks like the following example …

Forwording domain from Godaddy ragister to social sites or other URLs

June 18, 2019 0 Comments

Last Updated on April 14, 2021 by amitoverflow1 ​ In this post I will tell you how to forword your new godaddy domain to your favourite social networks or other sites. Forwording a domain means redirecting it to other urls. So you just regestered a new domain on Godaddy and you don’t know what to …

Enforce https and www in a single htaccess rule – AmitOverflow blog

June 18, 2019 0 Comments

Last Updated on April 21, 2021 by amitoverflow1 It is quite possible to redirect http and non www requests to https and www with one single redirect using a RewriteRule in htaccess. Assuming, you want your site visitors to always redirect to https://www version of your site regardless of they come by http or non-www …

How to display adsense ads on AMP for wordpress plugin

June 14, 2019 0 Comments

Last Updated on June 14, 2019 by amitoverflow1 AMP for wordpress is an AMP plugin that converts wordpress pages into AMP format . The plugin automatically enables AMP version of your blog posts. AMP pages load faster then normal html pages in a web browser and can help rank your site higher in search engines. …

Set env variable in htaccess – Create Apache Environment variable viahtaccess

June 13, 2019 0 Comments

Last Updated on June 13, 2019 by amitoverflow1 You can set an environment variable using your htaccess file. There are two ways to do this via an htaccess. RewriteRule SetEnv directive Setting env variable via RewriteRule To set env variable through a RewriteRule, you need to use E flag. Syntex for the E flag is …

How to rewrite domainA to domainB using htaccess Apache Proxy Moduleand RewriteRule

June 10, 2019 0 Comments

Last Updated on June 10, 2019 by amitoverflow1 Mod proxy is a powerful Apache modules and provides URL rewriting and domain mapping capabilities. With proxy module enabled on apache server you can rewrite your domain URLs to an external domain that is being hosted on a diffrent web server. Proxy module allows you to use …

htaccess domain redirection www to non-www and the other way around code examples

June 6, 2019 0 Comments

Last Updated on June 6, 2019 by amitoverflow1 The search ranking of your domain can go down If your website is accessible with and without www as both URLs with same contents are indexed by search engines and can cause duplicate contents issues. In this case, all you need to do is either redirect your …