W
W
wwwnotna2014-12-30 17:20:14
htaccess
wwwnotna, 2014-12-30 17:20:14

Why is the htacces redirect looping?

What needs to be done to redirect to www.site.ru/news/1/ when going to www.site.ru/news/?
without cms. I'm just trying.
I get it like this - www.site.ru/news/1/1/1/1/1/1/1/1/ Tell me
how to do it right?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Mikhail Osher, 2014-12-30
@miraage

RewriteRule ^/news/?$ /news/1 [L,QSA]
Don't you?

A
Andrey Petrov, 2014-01-01
@anndmill

Redirect /news/ www.site.ru/news/1 or try
RedirectMatch ^/news/(.*)$ www.site.ru/news/1

E
Eugene Kupchak, 2016-01-12
@e_kupchak

++
Did you fix it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question