What is URL mod_rewrite
mod_rewrite is re write your original url to customize url.
Why we need URL Rewrite
We use this for user to read easily and understandable. This is most important part of SEO.
Http://yourdomain.com/categoryid=1&subcategory=3 this kind of URL can not identify anything looking the url. but using mod_rewrite the url can change as below.
This is very useful who are looking for rank your web site on the web.
How to active and do it
first create file name like “.
htaccess” , after that open it with text editor and write flowing text.
//active mod_rewrite RewriteEngine on
mod_rewrite code in .htaccess
//active mod_rewrite RewriteEngine on RewriteRule ^([^/]*)/([^/]*)/([^/]*)\.html$ /shop.php?cmd=$1&category=$2&product=$3 [L]
after url mod_rewrite
use this link to generate your mod_rewrite code.