sitemap и тд
This commit is contained in:
7
ospabhost/frontend/public/.htaccess
Normal file
7
ospabhost/frontend/public/.htaccess
Normal file
@@ -0,0 +1,7 @@
|
||||
RewriteEngine On
|
||||
RewriteBase /
|
||||
# Если файл или папка существует — отдать как есть
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
# Иначе — отдать index.html
|
||||
RewriteRule ^ index.html [L]
|
||||
24
ospabhost/frontend/public/robots.txt
Normal file
24
ospabhost/frontend/public/robots.txt
Normal file
@@ -0,0 +1,24 @@
|
||||
User-agent: *
|
||||
Allow: /
|
||||
Allow: /about
|
||||
Allow: /tariffs
|
||||
Allow: /login
|
||||
Allow: /register
|
||||
Allow: /terms
|
||||
|
||||
Disallow: /dashboard
|
||||
Disallow: /api/
|
||||
Disallow: /admin
|
||||
Disallow: /private
|
||||
|
||||
Sitemap: https://ospab.host/sitemap.xml
|
||||
|
||||
# Yandex
|
||||
User-agent: Yandexbot
|
||||
Allow: /
|
||||
Crawl-delay: 0
|
||||
|
||||
# Google
|
||||
User-agent: Googlebot
|
||||
Allow: /
|
||||
Crawl-delay: 0
|
||||
Reference in New Issue
Block a user