by Amit Verma | Apr 3, 2021 | Apache mod-rewrite and htaccess related Articles, htaccess, url-rewriting
In this post you will learn how to shorten a long URL with very simple steps using RewriteRule directive in an htaccess file. We are going to change a really long URL that is hard to type , hard to remember and not good for SEO in this article. We have a URL of the...
by Amit | Mar 30, 2021 | Apache mod-rewrite and htaccess related Articles, htaccess, url-rewriting
One of the most common issue every mod-rewrite users encounter while using RewriteRule directive to shorten their URLs is the IMG, CSS , JS and other relative resources failing to load. If you are using RewriteRules to rewrite your URLs then you may sometimes face...
by Amit | Mar 25, 2021 | Apache mod-rewrite and htaccess related Articles, htaccess, url-rewriting
With an htaccess rewrite ,it is quite possible to map your subdomain to subfolder if its not already pointing there. Suppose, you just created a new subdomain named bar.example.com and its currently pointing to you root directory , you can simply use a RewriteRule to...
by Amit | Mar 18, 2021 | Apache mod-rewrite and htaccess related Articles, htaccess, url-rewriting
END flag is used in RewriteRule to terminate the internal Rewriting process. When the rule matches the END tells server to shut down the internal Rewriting that happens only on htaccess context but not in server.config as this file is read only once by the server. END...
by Amit | Feb 20, 2020 | Apache mod-rewrite and htaccess related Articles, htaccess, url-rewriting
In this post post I will show you how to shorten a user URL on Apache server by htaccess. Assuming you have a long user URL that looks something like the following: /user.php?username=foobar And you want to shorten this URL to : /foobar The shorter version is easier...