Answer the question
In order to leave comments, you need to log in
What's wrong with redirect in .htaccess?
Why when I redirect from the root folder to a specific page in .htaccess: redirect 301 / http://site/news.php/
the page name is duplicated in the address bar
http://site/news.php/news.php/news.php/news.php/news.php/news.php/news.php/news.php/news.php/news.php/news.php/news.php/news.php/news.php/news.php/news.php/news.php/news.php/news.php/
Answer the question
In order to leave comments, you need to log in
redirect 301 ^/& http://site/news.php/
In your version, the redirect will always occur when there is a slash in the uri.
You need to specify the start-of-line (^) and end-of-line (&) marks
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question