O
O
okovalev2017-08-24 14:36:55
htaccess
okovalev, 2017-08-24 14:36:55

ReturnRule. Why does not it work?

Written:
RewriteEngine On
RewriteRule ^/$ ?route=$1 [L]
I expect that let's say: site.ru/index/test, it will show site.ru?route=index/test
But instead of expecting I see a 500 error. :(

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2017-08-25
@okovalev

^/$ ?route=$1 [L]
I understand correctly that you redirect the slash to the first group that you don't have?
what do you think your redirect does?
Oh, and shielding would be nice too.
^/$ \?route\=$1 [L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question