Answer the question
In order to leave comments, you need to log in
Why does Apache deliver GET parameters on 301 redirects?
The site dip24.ru made a redirect in htaccess from the old page to the new one (line Redirect 301 /antiplagiat-na-zakaz.html /antiplagiat-na-zakaz/ ):
AddDefaultCharset UTF-8
Options -Indexes
php_value session.cookie_httponly True
RewriteEngine on
Redirect 301 /antiplagiat-na-zakaz.html /antiplagiat-na-zakaz/
Options +FollowSymLinks
RewriteCond %{HTTP_HOST} ^www.site\.com$ [NC]
RewriteRule ^(.*)$ site.com/$1 [R= 301,L]
RewriteCond %{REQUEST_FILENAME} !^favicon\.ico
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)\/page/(.*)$ index.php? module=static-page&alias=$1&type=1&page=$2
RewriteRule ^(.*).html$ index.php?module=static-page&alias=$1&type=0
RewriteRule ^(.*)\/$ index.php?module=static-page&alias=$1&type=1
But for some reason after this, GET parameters are delivered and the address turns into dip24.ru/antiplagiat-na-zakaz/?module=static-page&... - that is, ?module=static-page&alias=antiplagiat-na-zakaz&type=0 is superfluous. Please help, it's been 2 weeks I can't figure it out
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