Daftar Isi :
Sebelumnya saya mempunyai sebuah subdoamin, namun karena bandwith dari hosting yang saya miliki sangat terbatas akhirnya saya putuskan untuk membeli domain baru seharga 25 juta ribu, dan menggunakan hosting gratisan yang lumayan bagus sebagai penyimpanan file website saya (100GB bandwidth dan 300MB) (bukan 000webhos )
Traffic
Nah, agar traffic dari subdomain diarahkan ke domain baru, kita harus menggunakan redirect url, atas rekomendasi dari google, maka saya gunakan 301 redirect url :
“If you need to change the URL of a page as it is shown in search engine results, we recommended that you use a server-side 301 redirect. This is the best way to ensure that users and search engines are directed to the correct page. The 301 status code means that a page has permanently moved to a new location. (klik here)”
Pilihan redirect
Ada beberapa pilihan untuk mendirect url lama ke url yang baru, contohnya adalah sebagai berikut :
PHP Redirect
<? Header (“HTTP/1.1 301 Alamat ini dipindahkan permanen);
Header( “Location: http://www.alamat-url-baru.com” );
?>
ASP Redirect
<%@ Language=VBScript %>
<% Response.Status=”301 Halaman Dipindahkan”
Response.AddHeader “Location”,”http://www.alamat-url-baru.com/” %>
ASP .NET Redirect JSP (Java) Redirect
<% response.setStatus(301);
response.setHeader( “Location”, “http://www.alamat-url-baru.com/” );
response.setHeader( “Connection”, “close” );
%>
CGI PERL Redirect
$q = new CGI; print $q->redirect(“http://www.alamat-url-baru.com/”);
Ruby on Rails Redirect
def old_action
headers[“Status”] = “301 Pindah Kontrakan”
redirect_to “http://www.alamat-url-baru.com/” end
.htaccess
Options +FollowSymLinks
RewriteEngine on RewriteRule (.*) http://www.domaina-baruku.com/$1 [R=301,L]
Saya sendiri menggunakan pilihan .htaccess

Wassalam
Hendra Wijaya
Referensi :
1. 301 Redirect URL, url : http://dirmanto.web.id/berbagi-informasi/301_redirect_url/ tanggal akses 10 mei 2011 pukul 21.00 wita
Discover more from hendrawijaya.net
Subscribe to get the latest posts sent to your email.
kalau buat blogspot gimana gan penerapannya