SEO Friendly Rewrite Method to Move Website URL From Subdirectory to Root Parent Folder Seo friendly perrašymas būdas judėti svetainės adresą iš podkatalogu 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. Jūs turite sukurti savo svetainę, dienoraštį, pavyzdžiui, Wordpress, Drupal, LiveJournal, ar turinio valdymo sistemos, pavyzdžiui, Joomba ir Mambo gražiai bent URL nuoroda pvz http://www.domain.com/mylovelysite ir gauti padorų eismo internete svetainėje. 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. Dabar reorganizavimo naudotis, jūs nuspręsite perkelti iš sub svetainės katalogą Tėvų katalogas, tinkamai į svetainės pagrindinį katalogą vietoj. Moving the site to another folder or root folder will break all links and backlinks referenced to your website. Persikėlimas į kitą aplanką svetainėje arba šakninis aplankas bus nutraukti visi ryšiai ir Atgalinės nuorodos į jūsų svetainę. 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). Jei šie neveikiančių nuorodų nėra perkrauta ir nukreipti tinkamai, ten bus apie 404 psl daug nerasta, gali išvyti lankytojų, arba blogiausiu atveju, įtakos ir mažesnis paieškos Reitingas pozicija (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. Geriausias būdas valdyti svetainės URL, nes judėjimas į katalogą, keisti naudojant peradresavimo funkcija pateikė mod_rewrite modulis Apache HTTPD serveryje. Most web hosts using Apache web server supports mod_rewrite redirect by default, and can implement this trick with ease. Dauguma tinklo kompiuterių, naudojant Apache web serveris palaiko mod_rewrite nukreipti pagal nutylėjimą, ir gali įgyvendinti šią lengvai apgauti. Else you will need to enable and turn on mod_rewrite module. Else jums reikia įjungti ir išjungti mod_rewrite modulio.
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. Norėdami nukreipti iš pakatalogį ar sub-aplanke kataloge, pridėkite šias eilutes teksto į viršų. Htaccess faile esančių sub-directory nukreipti visus į šį aplanką prašymai bus nukreipti į naują vietą (ty šaknis), tinkamai . If the .htaccess file does not exist, create one. Jei. Htaccess failas neegzistuoja, sukurti.
<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. Pakeisti mylovelysite ir kt eilutę aukščiau katalogo pavadinimą savo svetainės URL. These line in .htaccess will redirect requests for the /mylovelysite sub-directory to the root directory by stripping “mylovelysite/” out of the URL. Šios linijos. Htaccess bus nukreipti prašymai / mylovelysite sub-kataloge root directory išpardavimas "mylovelysite /" iš 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. Pavyzdžiui, apsilankymas http://www.domain.com/mylovelysite/index.html gaus nukreipė į http://www.domain.com/index.html, o ne grąžinant 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. Tai naudinga lankytojams, kurie atėjo į Jūsų svetainę per žymę ar mėgstamas, ar tie Ieškoti puslapiuose per paieškos sistemas, kurios dar kartą patikrinti, iš naujo spidered ir atnaujinama su nauju URL savo paieškos indeksus į pradinį dienų juda.
However, the movement will still likely to affect your site's search engine rankings. Tačiau judėjimas vis dar gali paveikti jūsų svetainės paieškos sistemų reitinguose. 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). Perrašyti taisykles pirmiau įsitikinkite 301 nuolatinių nukreipti siekiant užtikrinti, kad PageRank ar reitingą pereis į naują URL Search Engine Optimization (SEO). Until the new site structures get fully reindexed, the organic traffic from search engines may be reduced temporarily. Kol nauja svetainė struktūrų gauti visiškai reindexed, srautą iš paieškos sistemų, gali būti sumažintas, laikinai.
IMPORTANT : The page is machine translated and provided "as is" without warranty. DĖMESIO: Šis puslapis yra mašina išvertė ir pateikiama "kaip yra" be garantijų. Machine translation may be difficult to understand. Automatinis vertimas gali būti sunku suprasti. Please refer to Remkitės original English article originalas anglų straipsnis whenever possible. jei įmanoma.
Related Articles Susiję straipsniai
- Add Trailing Slash to the End of the URL with .htaccess Rewrite Rules Pridėti ukośnika į URL Pabaiga. Htaccess Rewrite taisyklės
- Redirect or Rewrite to Remove Double or Multiple Slashes (//) in URL Nukreipimo ar perrašymas į Ištrinti dvigubais arba trigubais nerijos ribos (/ /) ir adresas
- How to Move WordPress Blog to New Domain or Location Kaip perkelti WordPress blog Naujas Domenas arba URL
- How to Get Linux Server Sends Email Alert on Root Login Kaip gauti "Linux" serveris siunčia elektroniniu paštu šaknų Prisijungti
- Reset the Root Password of MySQL Server Atstatyti slaptažodį root MySQL Server
- Disable Direct Root Login and User Access via SSH to Server Išjungti Tiesioginė Root Prisijunkite Vartotojo Prieiga per SSH prie serverio
- Slow File and Folder Copy, Move, Transfer or Delete Operation Speed Problem in Vista Fix Mažoji Failų ir aplankų kopijavimas, perkėlimas, perdavimas ar trinti operacijos Speed Problema Vista Fix
- Change and Reset MySQL root Password Kaitos ir naujo MySQL root Password
- Tips of How to Delete Folder Contents While Maintaining Folder Tree Structure in Windows XP PC Patarimai, kaip Ištrinti katalogą Turinys išlaikant struktūrą ir aplankus, Windows XP kompiuteryje
- Attempt to Reveal Microsoft Xbox 360 Failure Root Cause Bandymas atskleisti Microsoft Xbox 360 gedimas Root Cause










































February 17th, 2009 17:40 17 vasaris 2009 17:40
Very nice information. Very nice informaciją. Thanks for share.Look forward to reading more from you in the future. Ačiū už share.Look perduoti svarstymui daugiau iš jūsų ateitį.
October 16th, 2008 04:13 16 spalis 2008 04:13
Wow, this is a great post. Oho, tai puiki paštu. Thanks for the information, this is often times an issue that comes up and I can never find a good resource to do this. Ačiū už informaciją, tai dažnai laiko klausimas, pasirodo, ir aš niekada negali rasti gerą šaltinį tai padaryti. Make sure you don't have a ton of links to your sub directory though because some value could be lost. Įsitikinkite, kad jūs neturite nuorodų į savo sub katalogas ton nors, nes kai vertė gali būti prarastas.
October 9th, 2008 22:56 9 spalis 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 dzia unsere Weiterleitung wie wir endlich kad ES wollten.
September 26th, 2008 23:15 26 rugsėjis 2008 23:15
hi labas
i have already redirect my primary domain to a subfolder “/folder”. jau peradresuoti savo pagrindinį domeną į pakatalogį "/ aplankas". Is it possible to hide the “/folder” name on the url ??? Ar galima paslėpti "/ aplankas" pavadinimą url?
For example i want primarydomain.com/index.php instead of primarydomain.com/folder/index.php Pavyzdžiui, aš noriu primarydomain.com / index.php vietoj primarydomain.com / katalog / index.php
August 30th, 2008 15:07 30 rugpjūtis 2008 15:07
[...] htaccess, but most do). [...] Htaccess, bet dauguma tai). If you don't have that file in your root directory you can create one. Jei neturite, kad savo kataloge failą galite susikurti. This site should help with specifics. Ši svetainė turėtų padėti specifiką. __________________ kristarella.com __________________ Kristarella.com
August 21st, 2008 08:43 21 rugpjūtis 2008 08:43
I'm kind of new to this but couldn't you just do: Aš tipo naujas, bet nebuvo ką tik padaryti:
Redirect permanent /mylovelysite/ Nukreipimo Nuolatinės / mylovelysite / http://wwww.domain.com/ http://wwww.domain.com/
June 19th, 2008 19:17 19 birželis 2008 19:17
Thanks dude i tried and it worked fine for my site Thanks dude Bandžiau ir ji kuo puikiausiai tinka mano svetainei http://www.hurricanesoftwares.com http://www.hurricanesoftwares.com but unfortunately it didn't worked out for my other site. bet deja, ji nebuvo parengta dėl kitų savo svetainę. Wondering whats wrong. Wondering whats wrong.
Ash Pelenai
May 8th, 2008 14:40 8 gegužė 2008 14:40
Yeah.. Yeah .. I'm thinking to move my blog from /blogs/ to the main root…ugh.. Aš galvoju pereiti Mano dienoraštis / Dienoraštis / pagrindinėje šaknų ... ugh .. I'm just too scared to do it I'm just too scared to do it