Mod_rewrite is able to rewrite url easily

I am examining now about to change dynamic url to static url.example,



It is called URL Regularization.If you wanna change url that and then you have to build Mod_rewrite into Apache.

Note:this article is not introduce how to install Mod_rewrite to you. After it installed complete write short text at .htaccess or httpd.conf,I recommend it what If you have root authority that can write at httpd.conf.
Mod_rewrite has a lot of functions, the most popular function is leave a message for users. If you need to change link text on web page you should use it and write this.

RewriteEngine on
RewriteRule ^/(.*)$$1 [R=301,L] 

The first line is declaration to use Mod_rewrite and second line is main statement to redirect user from root directory to new web site.


this is current url and another example is


and you rewrite to need yours. next is$1 [R=301,L]

it is new url address and,


it is code for search engine. It tells error 301. "L" is end sign