Ho senola: Ha o reka ts'ebeletso kapa sehlahisoa ka likhokahano tsa rona, ka linako tse ling re fumana chelete.

301 Redirect & How to Set up it (mekhoa e 2 e hlalositsoeng) ke eng?

What Is 301 Redirect?

301 Tsamaisa hape is used to guide search engines and your site visitors to a different URL which isn’t the one which they choose from a search engine results page and neither the one that they initially typed into their browsers.

301 e khutlela hape

Mohloli oa setšoantšo: netdna-ssl

In order to set up 301 redirect properly (technically) on your website, you can hira k'hamphani e nang le boiphihlelo ea ntlafatso ea webo ea nang le boiphihlelo ba tsebo ea ho hlophisa limmapa tse tataisang le ho li sebelisa ka tsela e ntle ka ho fetisisa.

Empa leha o hira setsebi, ho bohlokoa ka mokhoa o ts'oanang hore o tsebe ho tseba hore na litokisetso tsee li sebetsa joang le hore na o lokela ho li sebelisa ka mabaka afe?

When do I need to setup the redirection?

  1. You have a brand new website and you want a permanent redirect
  2. Maqephe a senyehileng kapa URL
  3. Ha o fallela HTTPS
  4. Ho ntlafatsa sebaka sa hau sa marang-rang (ho hlophisa bocha)
  5. Ho fetola li-URL ka lebaka lefe kapa lefe
  6. Ha o tlosa dikahare kapa o lokisa mathata a mang a amanang le ona
  7. Ho rarolla mathata a URL a matla
  8. Ho fetola kapa ho kopanya libaka
  9. Ho phahamisa bolaoli ba sebaka ka ho hokahanya liphetoho tsa webo le URL e le 'ngoe

How the redirection works?

Basically, a 301 redirect command let the site visitors and search engines know that a particular page has been moved to a different page permanently. While 302 e tsamaisa hape indicates the page has bee moved temporarily.

The entire process can be divided into the following three steps:

  • Mosebelisi kapa enjine ea ho batla e fihla ho URL ea pele
  • Taelo e 301 e lebisang e ba isa ho URL e ncha eo e seng eona eo ba e thaepileng sebatling.
  • Rewriting URL process starts all over again

Ha re hlahlobe setšoantšo se hlahisitsoeng Moz bakeng sa ho utloisisa ts'ebetso eohle eo 301 e tataisang hape e sebetsang:

301 e tsamaisa mosebetsi e sebetsa

How Redirection Impacts SEO & Rankings?

Boemo ba maqephe kapa ts'ebetso ea SEO ea webosaete e susumetsoa ka kotlolloho ke 301 redirections. E ka ba le tšusumetso e mpe kapa e ntle ho boemo ba maqephe a sebaka sa hau sa marang-rang.

Ho ba le boiphihlelo ba ho kenya tšebetsong mekhoa e 301 ka nepo e ka ba sesebelisoa sa bohlokoa ho ntlafatsa sebaka sa marang-rang sa liphetoho tse eketsehileng.

Litokelo tsa 301 li boetse li tsejoa e le phetisetso ea ka ho sa feleng 'me ka hona litšobotsi tsohle tsa leqephe le fetotsoeng joaloka MozRank, bolaoli ba maqephe, boleng ba sephethephethe, PageRank, jj.

Sena se etsa hore leqephe la detour le emele motho ea tataisoang ka botlalo.

Ka lebaka la phetisetso e 301, leqephe la khale le tlosoa ho index ea Google mme e ncha e nke sebaka.

Butle-butle, Google, hammoho le li-enjini tse ling tse kholo tsa ho batla, li qala ho fana ka khetho ea hau ea domain pele ho feta ea khale ho latela maemo a SEO.

Ha re e utloisiseng ka thuso ea molaetsa o pharalletseng:

301 redirection

Mohloli oa Litšoantšo: Hostinger

Ka thuso ea li-301 redirento, ho ba bonolo ho pheta litaba tsa khale le ho etsa hore webosaete e hlophise bocha. Hape, e thusa molemong oa phetiso e ntle ea bolaoli le ho e tsamaisetsa ka nepo ho matlafatsa ts'ebetso ea SEO ea sebaka sa hau sa marang-rang.

Ha re shebeng melemo e 'maloa ea bohlokoa ea ho sebelisa phetoho e nepahetseng ea 301:

  • Ha ho na monyetla oa ho kopitsoa ha li-enjini tsa ho batla li tla nka leqephe le boletsoeng e le karolo e arohaneng.
  • Baeti ba hau ba letsatsi le letsatsi ba ke ke ba fokotsa 'me ba ke ke ba fihla leqepheng le nang le "404 leqephe le sa fumaneng phoso".
  • Boemo ba hau ba maqephe a leqephe bo tla lula bo tsitsitse 'me u ka fetisetsa tumello ea URL ea khale ho e ncha e tla u thusa ho boloka balateli ba hau ka ho ba fetisetsa leqephe la detour.

How To Set Up 301 Redirect?

Ho joalo, ho na le mekhoa e 'maloa eo litsebi tsa webo e ka e sebelisang ho theha litokisetso tsa 301. Liphetoho tsena li ka hlophisoa habonolo bakeng sa leqephe le le leng la marang-rang kapa domain eohle.

Method 1. Editing the .htaccess File

U ka hlophisa file ea 301 ka ho hlophisa faele ea hau .htaccess, 'me ka ho etsa sena, u lokela ho ingolisa ho Setsi sa Taolo ea Ak'haonte (ACC)' me u ee ka lehlakoreng le ka lehlakoreng le letšehali ebe u tobetsa Domain.

Khetha mofuta oa "Laola Domain" ea hau ho tsoa lethathamong la tlase ebe u khetha eo u ka ratang ho e khutlisa.

Hona joale o tlameha ho ea ho "Laola Litlhophiso tsa Webo" tseo u ka li fumanang lenaneng la li-file tsa Web.

U hloka ho tobetsa khetho ea "Sheba kapa ho hlophisa khetho ea hau .htaccess" haeba u kanna ua ba le file ea .htaccess.

Empa haeba ha u e-so ka u etsa file e joalo u ka tobetsa konopo ea "Create the .htaccess File". Ha re utloisise ts'ebetso ena ka thuso ea skrini:

htaccess

Mohloli oa Setšoantšo: Joang

Kamora nako, ho hlophisa boits'oaro ba 301 u hloka ho kenyelletsa mela e 'maloa ho file ea hau ea .htaccess e ka arohanngoang hape ka mekhahlelo e' meli e meholo:

  • Redirect 301 / http://www.new-domain.com/ (Ho beha leqephe le bocha bakeng sa leqephe le le leng la marang-rang)
  • Ho tsamaisa bocha 301 /old-file.html http://www.domain.com/new-file.html (Ho hlophisa bocha bakeng sa sebaka sohle sa domain)

Kamora ho qeta mohato ona o hloka feela ho tobetsa Liphetoho haeba o se o ntse o na le file ea .htaccess. Kapa, ​​tlanya ho Etsa Faele bakeng sa ho eketsa lifaele tse ncha .htaccess.

Method 2. Using WordPress Plugins

WordPress redirection plugin can also help webmasters in setting up 301 redirects. Also, this plugin can help in keeping a track of 404 errors.

You can find this plugin in WordPress plugin directory.

Redirection WordPress plugin

Mohloli oa Litšoantšo: Inbound Joale

Bakeng sa ho etsa sena pele o hloka ho kenya le ho kenya plugin. Kamora ho etsa ts'ebetso ea ts'ebetso o tlameha ho etela karolo ea "Lisebelisoa" ebe o tobetsa ho "Redirection" ho theha liphallelo tsa hau.

Mona u ka bula URL ea khale le URL e ncha ea moo u eang. Kamora ho kenya tsena ka bobeli o tlameha ho tlanya ho "eketsa redirection" e le hore u phethe tšebetso ea ho hlophisa boieane ba 301.

O ka sheba setšoantšo se fanoeng ka tlase mme oa utloisisa mokhoa oa ho etsa ts'ebetso eohle.

Setting up new redirection

Mohloli oa Setšoantšo: WPBeginner

301 redirect can help your web portals perform better in terms of SEO and retain its visitor base if executed properly.

Empa mokhoa o sa lokang oa ho theha mefuta ena o ka utloisa maemo a hau a maqephe leqephe mme o ka etsa hore o lahleheloe ke bareki ba hau ba bohlokoa.

fihlela qeto e

Ka bokhutšoanyane, e ka fetisoang habonolo ka 301 ka ho latela mekhoa e boletsoeng ka holimo. Ho feta moo, e ka ba e 'ngoe ea lisebelisoa tse ntle haholo tsa ho ntlafatsa sebaka sa hau sa marang-rang bakeng sa ponahalo e phahameng.

Hape, ka 301 redirento u ka etsa bonnete ba hore sephethe-phethe sa inthanete se lebisoa phetolelong ea URL ea hau e ntlafalitsoeng haholo.

Empa, bakeng sa ho netefatsa hore lits'oants'o tsena ha li na ho ba le phello e mpe ho boemo ba hau le sephethephethe sa manyolo, ho ba le mokhoa o nepahetseng oa ho li theha hoa tlameha.

Kahoo, re u lakaletsa lehlohonolo ka leano la hau le tlang la ho tsamaisa sebaka sa marang-rang mme e ka u fa monyetla oa ho kotula melemo e mengata nakong e tlang.