Selaa lähdekoodia

Added robots.txt

And allow it through the .htaccess
Belle Aerni 2 vuotta sitten
vanhempi
commit
d31da240c4
2 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 3 0
      src/.htaccess
  2. 2 0
      src/robots.txt

+ 3 - 0
src/.htaccess

@@ -4,4 +4,7 @@ RewriteEngine On
 RewriteCond %{REQUEST_FILENAME} -f
 RewriteRule ^Themes/[^/]+/Assets/.+$ - [L]
 
+# Allow access to the robots.txt file
+RewriteRule ^robots\.txt$ - [L]
+
 RewriteRule ^(.+)$ index.php [L,QSA]

+ 2 - 0
src/robots.txt

@@ -0,0 +1,2 @@
+User-agent: *
+Disallow: /plugin/