Title: Help with regex redirection
Last modified: January 9, 2020

---

# Help with regex redirection

 *  [seoergoweb](https://wordpress.org/support/users/seoergoweb/)
 * (@seoergoweb)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/help-with-regex-redirection/)
 * hi, is there a way to redirect all the articles except some pages?
    I didn’t 
   quite understand how to use regexp, I understand that I should use this example
   of the documentation
 * Redirect all URLs to / blog / except ones that start with / blog /:
 * Source: ^ / (?! blog) (. *)
    Target: / blog / $ 1
 * only that I should set up multiple pages not to redirect, and the redirect must
   take place on another url.
 * for example if I want to redirect all the articles except the “About Us” page,
   is the following ok?
 * Source: ^ / (?! about-us) (. *)
    Target: [https://www.liaf-magazine.it/$1](https://www.liaf-magazine.it/$1)
 * and if in source I wanted to specify other pages how could I do?
 * Thanks in advance
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhelp-with-regex-redirection%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘Help with regex redirection’ is closed to new replies.

 * ![](https://ps.w.org/redirection/assets/icon-256x256.jpg?rev=983639)
 * [Redirection](https://wordpress.org/plugins/redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirection/reviews/)

## Tags

 * [redirect](https://wordpress.org/support/topic-tag/redirect/)

 * 0 replies
 * 1 participant
 * Last reply from: [seoergoweb](https://wordpress.org/support/users/seoergoweb/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/help-with-regex-redirection/)
 * Status: not resolved