| ProfileSysAdmin ParadiseBlogLists | Help |
|
May 24 Apache Rewrite RuleOnce you have a new website to replace the old one. You want to assign a new domain name for the new website. You want to bring the old domain name user to the new domain name.
Using Apache, you can make use of Rewrite Rule.
Here is an example:
Any user input http://www.olddomain.com/olddir will bring to http://www.newdomain.com/
You can add the following lines into httpd.conf under the working directory
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.olddomain\.com$ [NC] RewriteCond %{REQUEST_URI} ^/* [NC] RewriteRule ^(.*)$ http://www.newdomain.com/ TrackbacksThe trackback URL for this entry is: http://tscck.spaces.live.com/blog/cns!1E1A000563550990!120.trak Weblogs that reference this entry
|
|
|