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.


8 Responses to “SEO Friendly Rewrite Method to Move Website URL From Subdirectory to Root Parent Folder” 8 Responses to "seo friendly perrašymas būdas judėti svetainės adresą iš podkatalogu Root Parent Folder"

  1. pemilu Indonesia pemilu Indonezija
    February 17th, 2009 17:40 17 vasaris 2009 17:40
    8 8

    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į.

  2. SEO Consultant Joel SEO Consultant Joel
    October 16th, 2008 04:13 16 spalis 2008 04:13
    7 7

    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.

  3. Erotikshop Liebeslaute Erotikshop Liebeslaute
    October 9th, 2008 22:56 9 spalis 2008 22:56
    6 6

    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.

  4. elina Elina
    September 26th, 2008 23:15 26 rugsėjis 2008 23:15
    5 5

    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

  5. Can I Easily Change My Blog Directory WITHOUT screwing up links? Galiu lengvai pakeisti My Blog Directory varžtais sąsajos? - DIY Themes Forums - "Pasidaryk pats" Temos Forumai
    August 30th, 2008 15:07 30 rugpjūtis 2008 15:07
    4 4

    [...] 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

  6. Misschief Misschief
    August 21st, 2008 08:43 21 rugpjūtis 2008 08:43
    3 3

    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/

  7. Ashish Ashish
    June 19th, 2008 19:17 19 birželis 2008 19:17
    2 2

    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

  8. Michael Aulia Michael Aulia
    May 8th, 2008 14:40 8 gegužė 2008 14:40
    1 1

    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

Leave a Reply Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Galite naudoti šiuos žodžius: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q Cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Subscribe to comments funkcija buvo išjungta. To receive notification of latest comments posted, subscribe to Norėdami gauti pranešimus apie naujausius komentarų, užsiprenumeruoti My Digital Life Comments RSS feed Mano skaitmeninis gyvenimas Komentarų RSS or arba register to receive Registruokitės gauti new comments in daily email digest. Nauji komentarai kasdien elektroniniu paštu.
Custom Search

New Articles Nauji straipsniai

Incoming Search Terms for the Article Gaunamus paieškos terminus straipsnis

htaccess rewrite subdirectory htaccess perrašyti kataloge - -- htaccess rewrite folder htaccess perrašyti kataloge - -- mod rewrite subdirectory mod rewrite kataloge - -- rewrite directory perrašyti katalogas - -- htaccess rewrite to subdirectory htaccess perrašyti į pakatalogį - -- RewriteRule subdirectory RewriteRule kataloge - -- rewrite subdirectory perrašyti kataloge - -- htaccess hide subdirectory htaccess paslėpti kataloge - -- mod_rewrite subdirectory mod_rewrite kataloge - -- rewrite root directory perrašyti kataloge - -- wordpress blogs WordPress Blogs - -- htaccess rewrite subfolder htaccess rewrite podfolderu - -- htaccess rewrite subdir htaccess rewrite subdir - -- rewrite to subdirectory perrašyti į pakatalogį - -- htaccess "rewrite directory" htaccess "perrašyti katalogo" - -- all visi - -- htaccess rewriterule subdirectory htaccess RewriteRule kataloge - -- mod_rewrite redirect subdirectory mod_rewrite nukreipti kataloge - -- rewrite rule subdirectory perrašyti taisyklė kataloge - -- htaccess subdirectory rewrite htaccess pakatalogį perrašyti - -- htaccess rewrite subdirectories htaccess rewrite pakatalogį - -- htaccess redirect folder to root htaccess nukreipti kataloge root - -- mod_rewrite subdir mod_rewrite subdir - -- rewriterule subfolder to root RewriteRule pakatalogį root - -- URL Rewrite Folder URL Rewrite katalogą - -- .htaccess rewrite folder . htaccess perrašyti kataloge - -- redirect subdirectory to root nukreipti kataloge root - -- .htaccess rewrite subdirectory . htaccess perrašyti kataloge - -- mod_rewrite to subdirectory mod_rewrite į pakatalogį - -- mod_rewrite from subdirectory to root mod_rewrite iš pakatalogį root - -- htaccess rewrite folders htaccess rewrite katalogai - -- htaccess rewriteengine on subdirectory htaccess RewriteEngine On kataloge - -- htaccess move directory htaccess perkelti katalogas - -- htaccess remove subdirectory htaccess pašalinti kataloge - -- htaccess rewrite directory htaccess rewrite katalogas - -- mod rewrite subdirectories mod rewrite pakatalogį - -- hide subdirectory using htaccess paslėpti pakatalogį htaccess - -- rewrite htaccess subdirectory perrašyti htaccess kataloge - -- seo friendly url htaccess seo friendly url htaccess - -- subdirectory redirect pakatalogį nukreipti - -- .htaccess subdirectory rewrite . htaccess pakatalogį perrašyti - -- mod_rewrite invisible redirect to subdirectory mod_rewrite nematomas nukreipti į pakatalogį - -- move wordpress from directory to root of site which has a website on it WordPress perkelti iš katalogo į šaknis svetainę, kuri ją svetainėje - -- redirect folder rewrite mod peradresuoti aplanką mod rewrite - -- apache rewriterule subdirectory Apache RewriteRule kataloge - -- mod_rewrite domain to domain/subdirectory mod_rewrite domenas domenas / pakatalogį - -- build rewriterule move parent folder up Pastatymo RewriteRule pereiti aukštesnio lygio aplanko iki - -- rewriterule htaccess folder htaccess RewriteRule kataloge - -- htaccess rewrite folder to root htaccess perrašyti kataloge root - -- mod_rewrite subdirectories to php mod_rewrite pakatalogį PHP - --