i want to redirect my old website to the new domain. if the old website url is typed it should redirect to the new domai. how?
How to redirect a website?
Collapse
X
-
.htaccess should be used for this.
create a file named as .htaccess and put the below provided lines in that and upload it to the root folder of ur website
For some more examples check this.Code:Options +FollowSymlinks RewriteEngine on RewriteCond %{HTTP_HOST} ^olddomain\.com$ [NC] RewriteRule ^(.*)$ http://www.mynewdomain.com/$1 [R=301,L]Comment
Comment