RewriteEngine On RewriteCond %{HTTP_HOST} ^olddomain.com$ [OR] RewriteCond %{HTTP_HOST} ^www.olddomain.com$ RewriteRule (.*)$ http://www.newdomain.com/$1 [R=301,L]
Untuk meredirect domain lama ke domain baru apabila melakukan pergantian domain dapat menggunakan htaccess dengan kode berikut
- htaccess redirect domain, redirect old domain to new domain, redirect domain lama ke domain baru
- 10700 Kunder som kunne bruge dette svar
Relaterede artikler
Powered by WHMCompleteSolution