From bf5da9a6b814bec058b9ff7c9b3b845b82f2b895 Mon Sep 17 00:00:00 2001 From: kenjis Date: Sun, 7 Apr 2024 14:09:58 +0900 Subject: [PATCH] docs: fix merge mistake in "Deployment to Shared Hosting Services" --- .../source/installation/deployment.rst | 24 ++++++++++++++++++ .../source/installation/running.rst | 25 ------------------- 2 files changed, 24 insertions(+), 25 deletions(-) diff --git a/user_guide_src/source/installation/deployment.rst b/user_guide_src/source/installation/deployment.rst index 682003c318e9..184d9216c42b 100644 --- a/user_guide_src/source/installation/deployment.rst +++ b/user_guide_src/source/installation/deployment.rst @@ -177,3 +177,27 @@ And edit **.htaccess** as follows: Require all denied Satisfy All + +And remove the redirect settings in **public/.htaccess**: + +.. code-block:: diff + + --- a/public/.htaccess + +++ b/public/.htaccess + @@ -16,16 +16,6 @@ Options -Indexes + # http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritebase + # RewriteBase / + + - # Redirect Trailing Slashes... + - RewriteCond %{REQUEST_FILENAME} !-d + - RewriteCond %{REQUEST_URI} (.+)/$ + - RewriteRule ^ %1 [L,R=301] + - + - # Rewrite "www.example.com -> example.com" + - RewriteCond %{HTTPS} !=on + - RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] + - RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L] + - + # Checks to see if the user is attempting to access a valid file, + # such as an image or css document, if this isn't true it sends the + # request to the front controller, index.php diff --git a/user_guide_src/source/installation/running.rst b/user_guide_src/source/installation/running.rst index 5ee282fc47c4..919173c3e050 100644 --- a/user_guide_src/source/installation/running.rst +++ b/user_guide_src/source/installation/running.rst @@ -497,31 +497,6 @@ Deployment to Shared Hosting Services See :ref:`Deployment `. - -And remove the redirect settings in **public/.htaccess**: - -.. code-block:: diff - - --- a/public/.htaccess - +++ b/public/.htaccess - @@ -16,16 +16,6 @@ Options -Indexes - # http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritebase - # RewriteBase / - - - # Redirect Trailing Slashes... - - RewriteCond %{REQUEST_FILENAME} !-d - - RewriteCond %{REQUEST_URI} (.+)/$ - - RewriteRule ^ %1 [L,R=301] - - - - # Rewrite "www.example.com -> example.com" - - RewriteCond %{HTTPS} !=on - - RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] - - RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L] - - - # Checks to see if the user is attempting to access a valid file, - # such as an image or css document, if this isn't true it sends the - # request to the front controller, index.php - ********************* Bootstrapping the App *********************