Sometimes long folder names become annoying to type and can cause your page to result in huge loading time.
Thank GOD !!! .htaccess file is there with a solution for this problem. It also leads to Search engine friendly URLS and image names (for image searches)
The HTML
The HTML
<img src="/images/icons/logo/icon.jpg" width="10" height="10" alt="Image">
Now becomes...
<img src="/iil/icon.jpg" width="10" height="10" alt="Image">
The mod_rewrite .htaccess
RewriteEngine On
RewriteRule ^iil/(.*)$ /images/icons/logo/$1 [L]
No comments:
Post a Comment