Answer the question
In order to leave comments, you need to log in
How to write a redirect from one section to another?
there is such a structure
example.com/news/article-1
example.com/article/news/article-1
you need to make sure that all pages that belong to example.com/news are redirected to example.com/article/news and at the same time, this page example.com/news should not be redirected
there is such a rule
RewriteRule ^pagarnaia_i_evecuacionnaia_lestnica(/?)(.+)?$ /portfolio2/pagarnaia_i_evecuacionnaia_lestnica1/$2 [R=301,L]
Answer the question
In order to leave comments, you need to log in
RewriteRule ^news/(.+)$ /article/news/$1? [L,R=301]
(.+)
- one or more times $1
- the first parenthesis from the rewrite rule - will ?
remove the get parameters if they exist
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question