I
I
indapublic2015-12-04 10:37:49
Apache HTTP Server
indapublic, 2015-12-04 10:37:49

On hosting, a redirect occurs when using RewriteRule. Why?

I want to redirect from mysite.com/order/business to mysite.com/order/index.php?tariff=business I
use this construction in .htaccess for this

Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule order/(startup|business|vip) order/index.php?tariff=$1 [R=301,L]

On local hosting everything works perfectly. On the hosting (sweb) the url changes. That is, there is a redirect. How to get rid of it? Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Burov, 2015-12-04
@indapublic

remove R=301
httpd.apache.org/docs/current/rewrite/flags.html#flag_r

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question