Answer the question
In order to leave comments, you need to log in
Why does a 301 redirect result in a double script execution?
Perhaps the question is stupid, but I have never paid attention to this before, please clarify =)
In general, I use docker for WP, I took the image from here https://hub.docker.com/_/wordpress
Apache and
.htaccess redirects are already configured there
# BEGIN WordPress
# The directives (lines) between `BEGIN WordPress` and `END WordPress`
# are created automatically and can only be changed through WordPress filters.
# Manual changes between these markers will be overwritten.
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question