Page 1 of 1

NET me te IIS me whakaaro

Posted: Mon Dec 23, 2024 9:10 am
by rakibhsan01854
SEOmoz Whiteboard Paraire - Ngokingoki & Taupūtanga mai i Scott Willoughby i runga Vimeo . G Na: gspowart Hōngongoi 2, 2009 2 min panui Me pehea te Whakaaetanga i to Pae Microsoft .Net kia pai ake te SEO Utauta SEO Ko tenei urunga YouMoz i tukuna e tetahi o nga mema o te hapori. Ko nga whakaaro o te kaituhi no ratou katoa (kaore i te ahua o te mate rotu) me te kore pea e whakaata i nga whakaaro o Moz. Ko te panui YOUmoz a Whitespark " Te whakamahi i te mod_rewrite ki te Tahuri i nga URL Hihiko ki te SEO Friendly URLs " he pai mo te hunga e whakamahi ana i te Apache i runga i te Unix, i te Linux ranei, engari ko te hunga e whakamahi ana i te .


tonu me pehea te whakamahi i nga maataapono Whare Pukapuka Tau Waea SEO tika. o tatou paetukutuku. Waimarie, ka homai e NET he huarahi ki te mahi 301 redirects me te hihiri URL tuhi ano ka whakaaro ahau ka tohatoha atu ahau ki a koe i konei i runga i a YOUmoz. WHAKATŪPATO - GEEKY, MICROSOFT STUFF E HAERE MAI AI! 301 Redirects Ko te mea tuatahi me mahi koe ko te taapiri i tetahi konae global.asax ki to kaupapa ka hiahia koe ki te whakakore i te tikanga Application_BeginRequest.


Ko te waehere i raro nei ka tirohia kia mohio kei te karangahia te paetukutuku me "www" kaua ko te ingoa rohe anake. Mena karekau he "www" katahi ka huri 301 ki te waahi tika. kua parea te kore tono_BeginRequest(kaituku ahanoa, EventArgs e) { string newURL = ""; string localPath = Request.Url.LocalPath.ToLower(); //tirohia te tono kia timata ki www //a ehara i te localhost (dev) mena (!Request.Url.Host.StartsWith("www") && ! Request.Url.IsLoopback) { UriBuilder builder = new UriBuilder( Tono.Url); builder.