I am examining now about to change dynamic url to static url.example,
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 ^/(.*)$ http://www.newsite.com/$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
it is new url address and,
it is code for search engine. It tells error 301. "L" is end sign