A
A
acspro2014-11-20 19:27:39
Nginx
acspro, 2014-11-20 19:27:39

Why are GET parameters added on 301 redirects?

Site dip24.ru Spin on vps where Nginx + apache - all scripts are self-written. In .htaccess I added the following lines:
RewriteEngine on
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
Redirect 301 /kursovye-na-zakaz.html /kursovye-na-zakaz/
-------- -------------------------------------------------- ------------
Here, on the last line, I go to the address
dip24.ru/kursovye-na-zakaz.html
I am thrown to
dip24.ru/kursovye-na-zakaz/?module=static-page&ali. ..
And I need to go to dip24.ru/kursovye-na-zakaz
Tell me where I made a mistake, please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
acspro, 2014-11-20
@acspro

Sorry here is another piece from .htaccess
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

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question