RewriteRule vs Redirect directive runtime behavior explained with examples

October 31, 2019 0 Comments

Last Updated on April 21, 2021 by amitoverflow1 What is RewriteRule RewriteRule directive is used to rewite/redirect URLs on Apache server. To convert a longer URL path into shorter one we use RewriteRule directive which is part of Apache mod-rewite (Rewrite Module) . The following is the basic syntax of RewriteRule directive: RewriteRule newPath oldPath …

Can we redirect fragment/hash URLs using htaccess RewriteRule?

October 26, 2019 0 Comments

Last Updated on April 21, 2021 by amitoverflow1 I often see users struggling with their RewriteRule to redirect fragment URLs. Fragment is something that the server doesn’t receive meaning that a URL containing #path  can not be redirected using htaccess or any other server side redirection methods. Fragment usually appers at the end of the …

Time based URL rewriting Apache htaccess

October 19, 2019 0 Comments

Last Updated on April 21, 2021 by amitoverflow1 Time based URL rewriting on Apache With mod-rewite you can rewite or redirect your URLs based on server date and time logic. You can redirect your visitors to a specific page or URL destination using this date/time logic. In this post, we will learn how to apply …

How to know whether mod-rewite is enabled on Apache server – AmitOverflow blog

October 8, 2019 0 Comments

Last Updated on April 21, 2021 by amitoverflow1 How to check whether mod-rewite is enabled on Apache server mod-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 must enable …