[{"data":1,"prerenderedAt":404},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fsite-kit\u002Fold-urls":3,"docs-navigation":254,"docs-surround-\u002Fdocs\u002Fsite-kit\u002Fold-urls":401},{"id":4,"title":5,"body":6,"description":246,"extension":247,"icon":248,"meta":249,"navigation":248,"path":250,"seo":251,"stem":252,"__hash__":253},"docs\u002Fdocs\u002F4.site-kit\u002F07.old-urls.md","Keep old URLs",{"type":7,"value":8,"toc":241},"minimark",[9,13,17,22,33,43,46,50,145,149,152,170,199,202,226,237],[10,11,5],"h1",{"id":12},"keep-old-urls",[14,15,16],"p",{},"When a kit site replaces a client's existing site, every page that people link to and search engines list should stay at its URL. Hostsmith doesn't redirect old URLs to new ones yet, so the new site keeps the old paths exactly.",[18,19,21],"h2",{"id":20},"list-the-old-sites-paths","List the old site's paths",[14,23,24,28,29,32],{},[25,26,27],"code",{},".hostsmith\u002Fold-urls.txt"," holds the old site's paths, one per line. Lines that start with ",[25,30,31],{},"#"," are comments.",[34,35,41],"pre",{"className":36,"code":38,"language":39,"meta":40},[37],"language-text","# Paths of the old site that this site keeps\n\u002F\n\u002Fservices\n\u002Fservices\u002Fpainting\n\u002Fabout\n\u002Fblog\n\u002Fblog\u002Fwhat-a-fixed-quote-should-include\n","text","",[25,42,38],{"__ignoreMap":40},[14,44,45],{},"List every page of the old site: its sitemap, if it has one, is a good start. The file in a new site lists the example's pages: replace it.",[18,47,49],{"id":48},"keep-the-paths","Keep the paths",[51,52,53,69,135],"ul",{},[54,55,56,60,61,64,65,68],"li",{},[57,58,59],"strong",{},"Pages"," are served at their file's path, so ",[25,62,63],{},"pages\u002Fservices\u002Fpainting.en.md"," is ",[25,66,67],{},"\u002Fservices\u002Fpainting",". Name the files after the old paths.",[54,70,71,74,75,78,79,82,83,86,87],{},[57,72,73],{},"Collections"," are served under their base path, such as ",[25,76,77],{},"\u002Fblog",". A site moving from Webflow keeps Webflow's base path for its posts, such as ",[25,80,81],{},"\u002Fpost",", with the base path in ",[25,84,85],{},"src\u002Fsite.config.ts",":",[34,88,92],{"className":89,"code":90,"language":91,"meta":40,"style":40},"language-ts shiki shiki-themes github-dark","collections: {\n  news: { basePath: \"\u002Fpost\" },\n},\n","ts",[25,93,94,107,129],{"__ignoreMap":40},[95,96,99,103],"span",{"class":97,"line":98},"line",1,[95,100,102],{"class":101},"svObZ","collections",[95,104,106],{"class":105},"s95oV",": {\n",[95,108,110,113,116,119,122,126],{"class":97,"line":109},2,[95,111,112],{"class":101},"  news",[95,114,115],{"class":105},": { ",[95,117,118],{"class":101},"basePath",[95,120,121],{"class":105},": ",[95,123,125],{"class":124},"sU2Wk","\"\u002Fpost\"",[95,127,128],{"class":105}," },\n",[95,130,132],{"class":97,"line":131},3,[95,133,134],{"class":105},"},\n",[54,136,137,140,141,144],{},[57,138,139],{},"More languages"," keep the default locale at the root. Other locales are under their path, such as ",[25,142,143],{},"\u002Fde",", as Webflow does.",[18,146,148],{"id":147},"check-them","Check them",[14,150,151],{},"After a build:",[34,153,157],{"className":154,"code":155,"language":156,"meta":40,"style":40},"language-bash shiki shiki-themes github-dark","npm run check:urls\n","bash",[25,158,159],{"__ignoreMap":40},[95,160,161,164,167],{"class":97,"line":98},[95,162,163],{"class":101},"npm",[95,165,166],{"class":124}," run",[95,168,169],{"class":124}," check:urls\n",[14,171,172,173,176,177,180,181,184,185,188,189,192,193,180,196,198],{},"It checks that each path has a page in ",[25,174,175],{},"dist\u002F",", in the files Hostsmith serves for it: ",[25,178,179],{},"\u002Fabout"," from ",[25,182,183],{},"about",", ",[25,186,187],{},"about\u002Findex.html"," or ",[25,190,191],{},"about.html",", and ",[25,194,195],{},"\u002Fabout\u002F",[25,197,187],{},". It names every path without a page, and fails.",[14,200,201],{},"Before the client's domain moves, check the production site too, at its Hostsmith address:",[34,203,205],{"className":154,"code":204,"language":156,"meta":40,"style":40},"npm run check:urls -- --live https:\u002F\u002Facme.us.hostsmith.link\n",[25,206,207],{"__ignoreMap":40},[95,208,209,211,213,216,220,223],{"class":97,"line":98},[95,210,163],{"class":101},[95,212,166],{"class":124},[95,214,215],{"class":124}," check:urls",[95,217,219],{"class":218},"sDLfK"," --",[95,221,222],{"class":218}," --live",[95,224,225],{"class":124}," https:\u002F\u002Facme.us.hostsmith.link\n",[14,227,228,229,236],{},"Run it again on the client's domain once it points to Hostsmith. The README describes the ",[230,231,235],"a",{"href":232,"rel":233},"https:\u002F\u002Fgithub.com\u002Fhostsmith\u002Fsite-kit-astro\u002Fblob\u002Fmain\u002FREADME.md#commands",[234],"nofollow","exact lookup",".",[238,239,240],"style",{},"html pre.shiki code .svObZ, html code.shiki .svObZ{--shiki-default:#B392F0}html pre.shiki code .s95oV, html code.shiki .s95oV{--shiki-default:#E1E4E8}html pre.shiki code .sU2Wk, html code.shiki .sU2Wk{--shiki-default:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .sDLfK, html code.shiki .sDLfK{--shiki-default:#79B8FF}",{"title":40,"searchDepth":109,"depth":109,"links":242},[243,244,245],{"id":20,"depth":109,"text":21},{"id":48,"depth":109,"text":49},{"id":147,"depth":109,"text":148},"Keep the URLs of the site a kit site replaces, so links and search rankings keep working, and check them before the domain moves.","md",null,{},"\u002Fdocs\u002Fsite-kit\u002Fold-urls",{"title":5,"description":246},"docs\u002F4.site-kit\u002F07.old-urls","SN2Fy_6_KTF0JeHkkWBxy9wdjZwjzxEbM8mZY5NES7g",[255],{"title":256,"path":257,"stem":258,"children":259,"page":400},"Docs","\u002Fdocs","docs",[260,287,299,334,382],{"title":261,"path":262,"stem":263,"children":264,"page":-1,"icon":266},"Getting Started","\u002Fdocs\u002Fgetting-started","docs\u002F1.getting-started\u002Findex",[265,267,271,275,279,283],{"title":261,"path":262,"stem":263,"icon":266},"solar:rocket-bold",{"title":268,"path":269,"stem":270},"Introduction","\u002Fdocs\u002Fgetting-started\u002Fintroduction","docs\u002F1.getting-started\u002F1.introduction",{"title":272,"path":273,"stem":274},"Quick Start","\u002Fdocs\u002Fgetting-started\u002Fquick-start","docs\u002F1.getting-started\u002F2.quick-start",{"title":276,"path":277,"stem":278},"Sites","\u002Fdocs\u002Fgetting-started\u002Fsites","docs\u002F1.getting-started\u002F3.sites",{"title":280,"path":281,"stem":282},"Custom Domains","\u002Fdocs\u002Fgetting-started\u002Fcustom-domains","docs\u002F1.getting-started\u002F4.custom-domains",{"title":284,"path":285,"stem":286},"Support","\u002Fdocs\u002Fgetting-started\u002Fsupport","docs\u002F1.getting-started\u002F5.support",{"title":288,"path":289,"stem":290,"children":291,"page":-1,"icon":293},"Integrations","\u002Fdocs\u002Fintegrations","docs\u002F2.integrations\u002Findex",[292,294],{"title":288,"path":289,"stem":290,"icon":293},"ph:usb-bold",{"title":295,"path":296,"stem":297,"icon":298},"n8n","\u002Fdocs\u002Fintegrations\u002Fn8n","docs\u002F2.integrations\u002F1.n8n","simple-icons:n8n",{"title":300,"path":301,"stem":302,"children":303,"page":-1,"icon":305},"MCP","\u002Fdocs\u002Fmcp","docs\u002F3.mcp\u002Findex",[304,306,310,314,318,322,326,330],{"title":300,"path":301,"stem":302,"icon":305},"solar:plug-circle-bold",{"title":307,"path":308,"stem":309},"Quick start","\u002Fdocs\u002Fmcp\u002Fquick-start","docs\u002F3.mcp\u002F1.quick-start",{"title":311,"path":312,"stem":313},"Clients","\u002Fdocs\u002Fmcp\u002Fclients","docs\u002F3.mcp\u002F2.clients",{"title":315,"path":316,"stem":317},"Authentication","\u002Fdocs\u002Fmcp\u002Fauthentication","docs\u002F3.mcp\u002F3.authentication",{"title":319,"path":320,"stem":321},"Tools","\u002Fdocs\u002Fmcp\u002Ftools","docs\u002F3.mcp\u002F4.tools",{"title":323,"path":324,"stem":325},"Recipes","\u002Fdocs\u002Fmcp\u002Frecipes","docs\u002F3.mcp\u002F5.recipes",{"title":327,"path":328,"stem":329},"Limits and errors","\u002Fdocs\u002Fmcp\u002Flimits-and-errors","docs\u002F3.mcp\u002F6.limits-and-errors",{"title":331,"path":332,"stem":333},"FAQ","\u002Fdocs\u002Fmcp\u002Ffaq","docs\u002F3.mcp\u002F7.faq",{"title":335,"path":336,"stem":337,"children":338,"page":-1,"icon":340},"Site kit","\u002Fdocs\u002Fsite-kit","docs\u002F4.site-kit\u002Findex",[339,341,345,349,353,357,361,365,366,370,374,378],{"title":335,"path":336,"stem":337,"icon":340},"solar:layers-bold",{"title":342,"path":343,"stem":344},"Overview","\u002Fdocs\u002Fsite-kit\u002Foverview","docs\u002F4.site-kit\u002F01.overview",{"title":346,"path":347,"stem":348},"Start a site","\u002Fdocs\u002Fsite-kit\u002Fstart-a-site","docs\u002F4.site-kit\u002F02.start-a-site",{"title":350,"path":351,"stem":352},"Content","\u002Fdocs\u002Fsite-kit\u002Fcontent","docs\u002F4.site-kit\u002F03.content",{"title":354,"path":355,"stem":356},"Design","\u002Fdocs\u002Fsite-kit\u002Fdesign","docs\u002F4.site-kit\u002F04.design",{"title":358,"path":359,"stem":360},"Languages","\u002Fdocs\u002Fsite-kit\u002Flanguages","docs\u002F4.site-kit\u002F05.languages",{"title":362,"path":363,"stem":364},"Deploy with Hostsmith","\u002Fdocs\u002Fsite-kit\u002Fdeploy","docs\u002F4.site-kit\u002F06.deploy",{"title":5,"path":250,"stem":252},{"title":367,"path":368,"stem":369},"Work with an AI agent","\u002Fdocs\u002Fsite-kit\u002Fai-agents","docs\u002F4.site-kit\u002F08.ai-agents",{"title":371,"path":372,"stem":373},"Kit updates","\u002Fdocs\u002Fsite-kit\u002Fupdates","docs\u002F4.site-kit\u002F09.updates",{"title":375,"path":376,"stem":377},"Existing Astro sites","\u002Fdocs\u002Fsite-kit\u002Fexisting-astro-sites","docs\u002F4.site-kit\u002F10.existing-astro-sites",{"title":379,"path":380,"stem":381},"External CMS","\u002Fdocs\u002Fsite-kit\u002Fexternal-cms","docs\u002F4.site-kit\u002F11.external-cms",{"title":383,"path":384,"stem":385,"children":386,"page":-1,"icon":388},"Developers","\u002Fdocs\u002Fdevelopers","docs\u002F5.developers\u002Findex",[387,389,392,396],{"title":383,"path":384,"stem":385,"icon":388},"solar:code-bold",{"title":315,"path":390,"stem":391},"\u002Fdocs\u002Fdevelopers\u002Fauthentication","docs\u002F5.developers\u002F1.authentication",{"title":393,"path":394,"stem":395},"API Explorer","\u002Fdocs\u002Fdevelopers\u002Fapi-explorer","docs\u002F5.developers\u002F2.api-explorer",{"title":397,"path":398,"stem":399},"Node.js SDK","\u002Fdocs\u002Fdevelopers\u002Fsdk","docs\u002F5.developers\u002F3.sdk",false,[402,403],{"title":362,"path":363,"stem":364,"children":-1},{"title":367,"path":368,"stem":369,"children":-1},1792842401890]