Ignore urls in robot.txt with specific parameters? - Newdevzone

文章推薦指數: 80 %
投票人數:10人

Solution 2. You can block those specific query string parameters with the following lines. Disallow: /*?*dir= Disallow: ... Newdevzone Home Development Wordpress Database Python Golang Development Frontend Javascript React DevOps Linux DevOps Cheatsheet Extras PC Apps Software Miscellaneous Techniques WebGuide SEO WebGuide Yourexperienceonthissitewillbeimprovedbyallowingcookies. Allowcookies Published20Mar,2022 Ignoreurlsinrobot.txtwithspecificparameters? CategorySEO Modified:Aug26,2022 Thereare3suggestedsolutionsinthispostandeachoneislistedbelowwithadetaileddescriptiononthebasisofmosthelpfulanswersassharedbytheusers.IhavetriedtocoveralltheaspectsasbrieflyaspossiblecoveringtopicssuchasSeo,Robots.txtandafewothers.Ihavecategorizedthepossiblesolutionsinsectionsforaclearandpreciseexplanation.Pleaseconsidergoingthroughallthesectionstobetterunderstandthesolutions. Contents 01 Ignoreurlsinrobot.txtwithspecificparameters? 02 Solution1 03 Solution2 04 Solution3 05 FinalWords Solution1Here'sasolutionsifyouwanttodisallowquerystrings: Disallow:/*?* orifyouwanttobemorepreciseonyourquerystring: Disallow:/*?dir=*&order=*&p=* Youcanalsoaddtotherobots.txtwhichurltoallow Allow:/new-printer$ The$willmakesureonlythe/new-printerwillbeallowed. Moreinfo: http://code.google.com/web/controlcrawlindex/docs/robots_txt.html http://sanzon.wordpress.com/2008/04/29/advanced-usage-of-robotstxt-w-querystrings/ Solution2Youcanblockthosespecificquerystringparameterswiththefollowinglines Disallow:/*?*dir= Disallow:/*?*order= Disallow:/*?*p= SoifanyURLcontainsdir=,order=,orp=anywhereinthequerystring,itwillbeblocked. Solution3Here'sthefinalsolutionyoucantryoutincasenoothersolutionwashelpfultoyou.Thisone'sapplicableandusefulinsomecasesandcouldpossibltybeofsomehelp.Noworriesifyou'reunsureaboutitbutI'drecommendgoingthroughit.RegisteryourwebsitewithGoogleWebMasterTools.ThereyoucantellGooglehowtodealwithyourparameters. SiteConfiguration->URLParameters Youshouldhavethepagesthatcontainthoseparametersindicatethattheyshouldbeexcludedfromindexingviatherobotsmetatag.e.g. ConcludingRemarks SearchEngineOptimizationisallaboutimprovingthequalityandthequantityofawebsite'strafficthroughsearchengines.ThisisabroadtopicandinthisshortarticlewetrytocoversomeoftheaspectsofSEO.Therearealotofoptimizationsthatcanbeappliedandthussomanyquestions.Hopethesolutionshelpsyouinbetteroptmization. ❝ SometimesitpaystostayinbedonMonday,ratherthanspendingtherestoftheweekdebuggingMonday’scode. DanSalomon ❞ Tags: Seo Robots.txt Related HowtofixError:Notimplemented:navigation(excepthashchanges) HowToCheckFormIsDirtyBeforeLeavingPage/RouteInReactRouterv6? Howtomockinterceptorswhenusingjest.mock('axios')? HowtodownloadXLSXfilefromaserverresponseinjavascript? Howtocreatead3forcelayoutgraphusingReact PopularPosts HowtofixError:Notimplemented:navigation(excepthashchanges) HowToCheckFormIsDirtyBeforeLeavingPage/RouteInReactRouterv6? Howtomockinterceptorswhenusingjest.mock('axios')? HowtodownloadXLSXfilefromaserverresponseinjavascript? Howtocreatead3forcelayoutgraphusingReact Notification Asecondago



請為這篇文章評分?