]> insang Git - ZipProject.git/commitdiff
sitemap기능작성 및 네이버,구글 웹마스터 기능 추가
authorjocloud <dhkq92@icloud.com>
Thu, 21 May 2020 15:40:00 +0000 (15:40 +0000)
committerjocloud <dhkq92@icloud.com>
Thu, 21 May 2020 15:40:00 +0000 (15:40 +0000)
ZipProject/Controllers/WebZipController.cs
ZipProject/Views/Shared/_Layout.cshtml
ZipProject/wwwroot/sitemap.xml

index 1df58838a01d1c366506afb4956681a69669eafc..65155458449aa211e9190f3e76989f81f5263ebc 100644 (file)
@@ -139,6 +139,22 @@ namespace ZipProject.Controllers
       return File(file, content_type, "StaticFile");
     }
 
+    [HttpGet("/sitemap")]
+    public IActionResult Sitemap()
+    {
+      string path;
+      string content_type= "text/xml";
+
+#if !DEBUG
+      path = Environment.CurrentDirectory + "/release/netcoreapp2.1/publish/wwwroot/sitemap.xml";
+#else
+      path = Environment.CurrentDirectory + "/wwwroot/sitemap.xml";
+#endif
+
+      byte[] file = System.IO.File.ReadAllBytes(path);
+      return File(file, content_type, "sitemap.xml");
+    }
+
   }
 
 }
\ No newline at end of file
index 1d8bc6e34c4009c2d90725e596547c4ebbc0549d..2582faf64791c5933b6c1d965c183d2258d55b06 100644 (file)
@@ -13,6 +13,7 @@
   <meta name="og:site_name" content="nicezip">\r
   <link rel="canonical" href="https://nicezip.wabiey.com">\r
   <link rel="canonical" href="https://wabiey.com">\r
+  <meta name="naver-site-verification" content="aee3b6eaab64e6d0e60c7bfbc7a87ab240a068ff" />\r
   <title>@ViewData["Title"]</title>\r
 \r
   <link rel="stylesheet" href="/static/lib:bootstrap:dist:css:bootstrap.css" />\r
index 5f6c55b549d40bf7bb534d1968c7e9ba54adac76..94f71507fde8f1e5c745c762d08c8eb10d0ca34f 100644 (file)
@@ -6,10 +6,10 @@
             http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">\r
 <!-- created with Free Online Sitemap Generator www.xml-sitemaps.com -->\r
 \r
-
-<url>
-  <loc>https://nicezip.wabiey.com/</loc>
-  <lastmod>2019-02-23T16:12:28+00:00</lastmod>
+\r
+<url>\r
+  <loc>https://nicezip.kr/</loc>\r
+  <lastmod>2019-02-23T16:12:28+00:00</lastmod>\r
 </url>\r
 \r
 \r