.htaccess ile 301 Yönlendirme Nasıl Yapılır?
Linux sunucularda Apache kullanan web sunucularında 301 yönlendirme oldukça basittir.
.htaccess dosyanızı açarak mevcut kodlar yerine aşağıdaki kodları güncelleyiniz. Aşağıda yer alan eskisite.com yerine mevcut alan adınızı yazın. yenisite.com yerine ise yönlendirilecek yeni alan adınızı yazın ;
Options +FollowSymlinks RewriteEngine on ReWriteCond %{HTTP_HOST} ^(www.)?eskisite.com$ [NC] ReWriteRule ^(.*)$ https://www.yenisite.com$1 [R=301,L]
veya
Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://www.yonlendirileceksite.com/$1 [R=301,L]
Was this answer helpful?
Have not you found what you're looking for here? Since this field is not constantly updated, maybe it is not what you are looking for. For more articles visit our Webmaster Blog site ; http://blog.cliaweb.com