From 9c2e84374fca1af5e05bc0dbbb994263e65e46b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Melan=C3=A7on?= Date: Fri, 19 Nov 2021 09:57:34 -0500 Subject: [PATCH] Commit D9 updates to scaffolded files --- web/.gitignore | 3 ++- web/.htaccess | 10 +++++----- web/robots.txt | 16 ++++++++-------- web/web.config | 12 ------------ 4 files changed, 15 insertions(+), 26 deletions(-) diff --git a/web/.gitignore b/web/.gitignore index 405e224..793b5e8 100644 --- a/web/.gitignore +++ b/web/.gitignore @@ -1,3 +1,4 @@ /INSTALL.txt /README.txt -/example.gitignore \ No newline at end of file +/example.gitignore +/README.md \ No newline at end of file diff --git a/web/.htaccess b/web/.htaccess index 6f9123d..b1ee36b 100644 --- a/web/.htaccess +++ b/web/.htaccess @@ -116,13 +116,13 @@ AddEncoding gzip svgz # RewriteBase / # Redirect common PHP files to their new locations. - RewriteCond %{REQUEST_URI} ^(.*)?/(install.php) [OR] - RewriteCond %{REQUEST_URI} ^(.*)?/(rebuild.php) + RewriteCond %{REQUEST_URI} ^(.*)?/(install\.php) [OR] + RewriteCond %{REQUEST_URI} ^(.*)?/(rebuild\.php) RewriteCond %{REQUEST_URI} !core RewriteRule ^ %1/core/%2 [L,QSA,R=301] # Rewrite install.php during installation to see if mod_rewrite is working - RewriteRule ^core/install.php core/install.php?rewrite=ok [QSA,L] + RewriteRule ^core/install\.php core/install.php?rewrite=ok [QSA,L] # Pass all requests not referring directly to files in the filesystem to # index.php. @@ -138,11 +138,11 @@ AddEncoding gzip svgz # Allow access to PHP files in /core (like authorize.php or install.php): RewriteCond %{REQUEST_URI} !/core/[^/]*\.php$ # Allow access to test-specific PHP files: - RewriteCond %{REQUEST_URI} !/core/modules/system/tests/https?.php + RewriteCond %{REQUEST_URI} !/core/modules/system/tests/https?\.php # Allow access to Statistics module's custom front controller. # Copy and adapt this rule to directly execute PHP files in contributed or # custom modules or to run another PHP application in the same directory. - RewriteCond %{REQUEST_URI} !/core/modules/statistics/statistics.php$ + RewriteCond %{REQUEST_URI} !/core/modules/statistics/statistics\.php$ # Deny access to any other PHP files that do not match the rules above. # Specifically, disallow autoload.php from being served directly. RewriteRule "^(.+/.*|autoload)\.php($|/)" - [F] diff --git a/web/robots.txt b/web/robots.txt index 54da162..18f8df8 100644 --- a/web/robots.txt +++ b/web/robots.txt @@ -45,17 +45,17 @@ Disallow: /comment/reply/ Disallow: /filter/tips Disallow: /node/add/ Disallow: /search/ -Disallow: /user/register/ -Disallow: /user/password/ -Disallow: /user/login/ -Disallow: /user/logout/ +Disallow: /user/register +Disallow: /user/password +Disallow: /user/login +Disallow: /user/logout # Paths (no clean URLs) Disallow: /index.php/admin/ Disallow: /index.php/comment/reply/ Disallow: /index.php/filter/tips Disallow: /index.php/node/add/ Disallow: /index.php/search/ -Disallow: /index.php/user/password/ -Disallow: /index.php/user/register/ -Disallow: /index.php/user/login/ -Disallow: /index.php/user/logout/ +Disallow: /index.php/user/password +Disallow: /index.php/user/register +Disallow: /index.php/user/login +Disallow: /index.php/user/logout diff --git a/web/web.config b/web/web.config index 8dff0b2..79a0433 100644 --- a/web/web.config +++ b/web/web.config @@ -33,18 +33,6 @@ -