by Amit | Oct 8, 2019 | apache, htaccess, mod-rewrite
How to check whether mod-rewite is enabled on Apache servermod-rewite is a URL rewriting module provided by Apache. We use this module to rewite or beautify our site URLs. Although all web hosting service providers have pre-installed this module but in some cases you...
by Amit | Jun 18, 2019 | apache, htaccess, mod-rewrite
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...
by Amit | Jun 13, 2019 | apache, Apache mod-rewrite and htaccess related Articles, htaccess, mod-rewrite
You can set an environment variable using your htaccess file. There are two ways to do this via an htaccess. RewriteRule directive SetEnv directive Setting env variable via RewriteRule To set env variable through a RewriteRule, you need to use E flag. Syntex for the E...
by Amit | Jun 10, 2019 | apache, Apache mod-rewrite and htaccess related Articles, htaccess, mod-rewrite
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...
by Amit | Jun 6, 2019 | apache, Apache mod-rewrite and htaccess related Articles, htaccess, mod-rewrite
RewriteRule directive uses a Regular expression based pattern to match against URL path. In this post we will cover some basic and commonly used patterns that are most often used in RewriteRule.RewriteRule basic regex (.*) Catch-all and save (zero or more characters)...
by Amit | Jun 1, 2019 | apache, htaccess, mod-rewrite
Redirect non-logged in users using htaccessWith apache mod-rewrite it is quite possible to manipulate http cookies. The cookie you set using php or RewriteRule can easily be accessed using RewriteCond directive. If you need to redirect your non-logged in users of your...