Teth Leang

NOTE

REDIRECTION USING  htaccess. Redirect form old URLs to new URLs with specific URLs <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} ^oldwebsite.com [NC,OR] RewriteCond %{HTTP_HOST} ^www.oldwebsite.com [NC] RewriteRule ^(.*)$ http://newwebsite.com/$1 [L,R=301,NC] </IfModule> Redirect a Whole Domain to a New Domain <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} ^oldsite.com [NC,OR] RewriteCond %{HTTP_HOST} ^www.oldsite.com [NC] RewriteRule ^(.*)$ https://newsite.com/ [L,R=301,NC] </IfModule>

NOTE Read More »

Scroll to Top