by Amit | Apr 15, 2021 | apache, Apache mod-rewrite and htaccess related Articles, htaccess
htaccess has always been a confusing topic for all Apache users especially for newbies who are learning to write RewriteRules to modify URLs via an htaccess file. The reason why some people find it confusing is because the Apache mod-rewrite documentation is hard to...
by Amit | Mar 27, 2021 | apache, Apache mod-rewrite and htaccess related Articles, htaccess
There are different ways and directives to set an environment variable on Apache server through a htaccess file. One of the most common and the easiest way to set an Environment variable is by using a RewriteRule directive. It’s the easiest method because you...
by Amit | Mar 23, 2021 | apache, htaccess, url-redirection
If you are looking for an htaccess RewriteRule that enforces www and https in one redirection and without creating multiple redirects then you have come to the right place. On this article I am going post a 100 percent working rule that you can just copy and paste to...
by Amit | Mar 22, 2021 | apache, Apache mod-rewrite and htaccess related Articles, htaccess
In this article we will learn about mod-rewrite NEflag. What this flag is used for and why we should use it all these frequently asked questions are answered in this article. NE stands for NoEscape We use this flag in RewriteRule to tell the engine not to escape...
by Amit | Mar 21, 2021 | apache, Apache mod-rewrite and htaccess related Articles, htaccess, url-redirection
In this post you will find 5 mod-rewrite rules that you can just copy and paste to your htaccess file. htaccess copy paste rules with code examples. All the rules provided here are tested and works perfectly fine in an htaccess file. If you are one of those guys who...
by Amit | Mar 17, 2021 | apache, Apache mod-rewrite and htaccess related Articles, htaccess, url-redirection
QSD stands for “Query String Discard” as the name implies this flag is used to discard query string from URLs. This flag is supported on Apache versions 2.4+ . If you use this flag on earlier versions the you will get an “internal server error”...