SEO Friendly Rewrite Method to Move Website URL From Subdirectory to Root Parent Folder Metode Rewrite SEO Friendly untuk Pindahkan Website URL Dari Subdirektori untuk Root Parent Folder
You have set up your site, blog such as WordPress, Drupal, LiveJournal, or content management system such as Joomba and Mambo nicely at URL link such as http://www.domain.com/mylovelysite, and get decent traffic to the web site. Anda telah mengatur situs Anda, blog seperti Wordpress, Drupal, LiveJournal, atau sistem manajemen konten seperti Joomba dan Mambo dengan baik di link URL seperti http://www.domain.com/mylovelysite, dan layak mendapatkan lalu lintas ke web situs. Now in the reorganization exercise, you decide to move the site from sub-directory to the parent folder, properly at site's root location instead. Sekarang dalam latihan reorganisasi, Anda memutuskan untuk memindahkan situs dari sub-direktori untuk folder induk, baik di lokasi akar situs saja. Moving the site to another folder or root folder will break all links and backlinks referenced to your website. Memindahkan situs ke folder lain atau folder akar akan menghancurkan semua direferensikan link dan link balik ke situs web Anda. If these broken links are not handled and redirected properly, there will be a lot of 404 page not found error, potentially drive away visitors, or in worst case, affect and lower the search engine ranking position (SERP). Jika link ini tidak ditangani dan diarahkan dengan baik, akan ada banyak halaman 404 tidak ditemukan kesalahan, yang berpotensi mengusir pengunjung, atau dalam kasus terburuk, mempengaruhi dan menurunkan posisi peringkat mesin pencari (SERP).
The best way to manage the change of site's URL due to movement of directory location is by using redirection feature provided by mod_rewrite module in Apache HTTPD web server. Cara terbaik untuk mengelola perubahan URL situs karena gerakan lokasi direktori adalah dengan menggunakan fitur pengalihan disediakan oleh modul mod_rewrite di Apache HTTPD server web. Most web hosts using Apache web server supports mod_rewrite redirect by default, and can implement this trick with ease. Kebanyakan web host menggunakan server web Apache mod_rewrite mendukung redirect secara default, dan dapat menerapkan trik ini dengan mudah. Else you will need to enable and turn on mod_rewrite module. Lain Anda akan perlu untuk mengaktifkan dan mengaktifkan modul mod_rewrite.
To redirect from a subdirectory or sub-folder to root directory, add the following line of text towards the top of .htaccess file located in the sub-directory to redirect all requests into that folder will be redirected to new location (ie root) properly. Untuk mengalihkan dari subdirektori atau sub-folder untuk direktori root, tambahkan baris berikut teks ke bagian atas file. Htaccess yang terletak di sub-direktori untuk mengalihkan semua permintaan ke folder itu akan diarahkan ke lokasi baru (yaitu root) dengan benar . If the .htaccess file does not exist, create one. Jika file. Htaccess tidak ada, buatlah satu.
<IfModule mod_rewrite.c> <IfModule Mod_rewrite.c>
RewriteEngine On RewriteEngine On
RewriteBase / RewriteBase /
RewriteRule ^mylovelysite/(.*)$ /$1 [R=301,NC,L] RewriteRule ^ mylovelysite /(.*)$ / $ 1 [R = 301, NC, L]
</IfModule> </ IfModule>
Replace mylovelysite in the forth line above with the directory name on your website's URL. Ganti sebagainya mylovelysite di baris di atas dengan nama direktori di URL situs web Anda. These line in .htaccess will redirect requests for the /mylovelysite sub-directory to the root directory by stripping “mylovelysite/” out of the URL. Baris ini di. Htaccess akan mengarahkan permintaan pada / mylovelysite sub-direktori ke direktori root dengan stripping "mylovelysite /" keluar dari URL. For example, a visit to http://www.domain.com/mylovelysite/index.html will get redirected to http://www.domain.com/index.html, instead of returning an 404 error. Sebagai contoh, kunjungan ke http://www.domain.com/mylovelysite/index.html akan diarahkan ke http://www.domain.com/index.html, bukannya kembali suatu kesalahan 404. This is useful for visitors who come to your site via bookmark or favorite, or those find your web pages via search engines that haven't re-crawled, re-spidered and refreshed with the new URLs in their search indexes in the initial days after moving. Hal ini berguna bagi pengunjung yang datang ke situs Anda melalui bookmark atau favorit, atau mereka menemukan halaman web Anda melalui search engine yang belum kembali merangkak, kembali jelajahi dan segar dengan URL baru dalam indeks pencarian mereka di awal hari setelah bergerak.
However, the movement will still likely to affect your site's search engine rankings. Namun, gerakan masih akan cenderung mempengaruhi situs Anda peringkat mesin pencari. The rewrite rules above make sure of 301 permanent redirect to ensure that the PageRank or ranking will pass over to the new URLs for search engine optimization (SEO). Yang menulis ulang aturan-aturan di atas memastikan 301 redirect permanen untuk memastikan bahwa PageRank atau peringkat akan melewati ke URL baru untuk optimasi mesin pencari (SEO). Until the new site structures get fully reindexed, the organic traffic from search engines may be reduced temporarily. Sampai struktur situs baru mendapatkan sepenuhnya reindexed, lalu lintas organik dari mesin pencari dapat dikurangi sementara.
IMPORTANT : The page is machine translated and provided "as is" without warranty. PENTING: Halaman ini adalah mesin diterjemahkan dan diberikan "sebagaimana adanya" tanpa jaminan. Machine translation may be difficult to understand. Terjemahan mesin mungkin sulit untuk mengerti. Please refer to Silakan merujuk ke original English article artikel asli bahasa Inggris whenever possible. bila memungkinkan.
Related Articles Artikel Terkait
- Add Trailing Slash to the End of the URL with .htaccess Rewrite Rules Trailing Slash Tambahkan ke Akhir dari URL dengan. Htaccess Rewrite Aturan
- Redirect or Rewrite to Remove Double or Multiple Slashes (//) in URL Redirect atau Rewrite untuk Hapus Double atau Multiple garis miring (/ /) di URL
- How to Move WordPress Blog to New Domain or Location Bagaimana Wordpress Blog Pindah ke New Domain atau Lokasi
- How to Get Linux Server Sends Email Alert on Root Login Bagaimana Mendapatkan Server Linux Mengirim Email Alert on Root Login
- Reset the Root Password of MySQL Server Me-reset Password Root MySQL Server
- Slow File and Folder Copy, Move, Transfer or Delete Operation Speed Problem in Vista Fix Lambat File dan Folder Copy, Move, Transfer atau Hapus Soal Operasi di Vista Speed Fix
- Disable Direct Root Login and User Access via SSH to Server Nonaktifkan langsung Root Login dan User Access melalui SSH ke Server
- Change and Reset MySQL root Password Perubahan dan Reset MySQL root Password
- Attempt to Reveal Microsoft Xbox 360 Failure Root Cause Upaya untuk Mengungkapkan Microsoft Xbox 360 Root Cause Kegagalan
- Tips of How to Delete Folder Contents While Maintaining Folder Tree Structure in Windows XP PC Tips dari Cara Hapus Folder Isi Folder Memelihara Sementara Struktur Tree pada Windows XP PC










































February 17th, 2009 17:40 17 Februari 2009 17:40
Very nice information. Very nice informasi. Thanks for share.Look forward to reading more from you in the future. Thanks for share.Look maju untuk membaca lebih banyak dari Anda di masa depan.
October 16th, 2008 04:13 16 Oktober 2008 04:13
Wow, this is a great post. Wow, ini merupakan pos. Thanks for the information, this is often times an issue that comes up and I can never find a good resource to do this. Terima kasih atas informasi, hal ini sering kali menjadi masalah yang muncul dan aku tidak akan pernah bisa menemukan sumber yang baik untuk melakukan hal ini. Make sure you don't have a ton of links to your sub directory though because some value could be lost. Pastikan Anda tidak memiliki satu ton link ke sub direktori meskipun karena beberapa nilai bisa hilang.
October 9th, 2008 22:56 9 Oktober 2008 22:56
Danke für das schöne Beispiel. Danke für das schöne Beispiel. Das hat uns wirklich weiter geholfen. Das hat uns wirklich weiter geholfen. Nach einer kleinen Abänderung funktioniert unsere Weiterleitung endlich so wie wir es wollten. Nach einer kleinen Abänderung funktioniert endlich unsere Weiterleitung begitu wie wir es wollten.
September 26th, 2008 23:15 26 September 2008 23:15
hi hai
i have already redirect my primary domain to a subfolder “/folder”. i telah mengarahkan domain utama saya ke sebuah subfolder "/ folder". Is it possible to hide the “/folder” name on the url ??? Apakah mungkin untuk menyembunyikan "/ folder" nama di url???
For example i want primarydomain.com/index.php instead of primarydomain.com/folder/index.php Sebagai contoh i wanna primarydomain.com / index.php bukannya primarydomain.com / folder / index.php
August 30th, 2008 15:07 30 Agustus 2008 15:07
[...] htaccess, but most do). [...] Htaccess, tetapi kebanyakan mereka). If you don't have that file in your root directory you can create one. Jika Anda tidak memiliki file tersebut di direktori root anda Anda dapat membuat satu. This site should help with specifics. Situs ini akan membantu dengan spesifik. __________________ kristarella.com __________________ Kristarella.com
August 21st, 2008 08:43 21 Agustus 2008 08:43
I'm kind of new to this but couldn't you just do: Aku agak baru ini, tapi tidak bisa Anda hanya lakukan:
Redirect permanent /mylovelysite/ Redirect permanent / mylovelysite / http://wwww.domain.com/ http://wwww.domain.com/
June 19th, 2008 19:17 Juni 19, 2008 19:17
Thanks dude i tried and it worked fine for my site Thanks dude i berusaha dan bekerja dengan baik untuk situs saya http://www.hurricanesoftwares.com http://www.hurricanesoftwares.com but unfortunately it didn't worked out for my other site. tapi sayangnya itu tidak berhasil untuk situs lain. Wondering whats wrong. Tanya whats salah.
Ash Abu
May 8th, 2008 14:40 8 Mei 2008 14:40
Yeah.. Yeah .. I'm thinking to move my blog from /blogs/ to the main root…ugh.. Aku sedang berpikir untuk memindahkan blog saya dari / blog / ke akar utama ... ugh .. I'm just too scared to do it Aku hanya terlalu takut untuk melakukannya