Title: blog redirection from folder perspective.
Last modified: September 16, 2022

---

# blog redirection from folder perspective.

 *  Resolved [Jason A.](https://wordpress.org/support/users/thathostingco/)
 * (@thathostingco)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/blog-redirection-from-folder-perspective/)
 * We are trying to redirect /staging/blog/2022/06/29/guide-to-coming-up-with-high-
   quality-blog-content/ to /staging/guide-to-coming-up-with-high-quality-blog-content/
   but am coming up empty on the results and hitting the 404.
 * We have tried our source as:
    ^\/\staging\/\blog\/\d{4}\/\d{2}\/\d{2}\/(.*) ^/
   staging/blog\/\d{4}\/\d{2}\/\d{2}\/(.*) ^\/\blog\/\d{4}\/\d{2}\/\d{2}\/(.*) ^\/\
   d{4}\/\d{2}\/\d{2}\/(.*) ^\/\staging\/\blog\/\d{4}\/\d{2}\/(.*) ^\/\d{4}\/\d{
   2}\/(.*) ^/staging/blog\/\d{4}\/\d{2}\/(.*) ^/blog\/\d{4}\/\d{2}\/(.*) ^\/\blog\/\
   d{4}\/\d{2}\/(.*)
 * However, we have not to been able to get it working. We have this set as priority
   0 so as to make it run first, as there are other redirections. What are we missing?
    -  This topic was modified 3 years, 9 months ago by [Jason A.](https://wordpress.org/support/users/thathostingco/).
    -  This topic was modified 3 years, 9 months ago by [Jason A.](https://wordpress.org/support/users/thathostingco/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fblog-redirection-from-folder-perspective%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/blog-redirection-from-folder-perspective/#post-16018631)
 * You can find details about regular expressions here (including examples):
 * [https://redirection.me/support/redirect-regular-expressions/](https://redirection.me/support/redirect-regular-expressions/)
 * You seem to have sprinkled `\` arbitrarily in most of the expressions above. 
   A lot of them aren’t necessary and are probably causing problems. I would advise
   using https:://regex101.com to help you create and test an expression.
 * Your expression needs to match the whole path, not just part of it.

Viewing 1 replies (of 1 total)

The topic ‘blog redirection from folder perspective.’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [John Godley](https://wordpress.org/support/users/johnny5/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/blog-redirection-from-folder-perspective/#post-16018631)
 * Status: resolved