V
V
Vladimir2016-06-10 14:58:47
htaccess
Vladimir, 2016-06-10 14:58:47

How to make a redirect correctly - change the folder in the path for news/blog pages?

There is a path http://mysite.ru/articles/01-article-name
How to replace articles with a blog in this path, given that there are a lot of pages and they will be replenished.
it is necessary that when hitting http://mysite.ru/articles/01-article-name , a person gets to http://mysite.ru/blog/01-article-name

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2016-06-10
@zaharbaz

For my case, everything turned out to be simple:
RewriteRule articles/(.*) /blog/$1 [R=301,L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question