diff --git a/public/.htaccess b/public/.htaccess new file mode 100644 index 0000000..7a4704f --- /dev/null +++ b/public/.htaccess @@ -0,0 +1,8 @@ +# htaccess for Astro.js +ErrorDocument 404 /404.html + +# スラッシュの自動補完(ディレクトリ実体がある場合) +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_URI} !(.*)/$ +RewriteRule ^(.*)$ /$1/ [L,R=301] diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..1f53798 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: /