Title: using Regular expressions with redirection plugin
Last modified: August 19, 2016

---

# using Regular expressions with redirection plugin

 *  [jonisolis](https://wordpress.org/support/users/jonisolis/)
 * (@jonisolis)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/using-regular-expressions-with-redirection-plugin/)
 * OK, I still am looking for help with this regular expressions stuff! I tried 
   to set up a regular expressions with a code sample posted on the plugin page,
   but cannot get it to work. Has any had success with using Regular expressions
   with the redirection plugin? Would you be willing to help others that cannot 
   seem to figure this out? HELP!
 * Here is the regular expression code I tried: /blog​/(.*) => ​/$1
 * I had a blog set up like this: [http://domainname.com/blog/](http://domainname.com/blog/)
   
   and not is it set up like this: [http://domainname.com/](http://domainname.com/)
 * So what regular expression code do I need for this?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [austingulati](https://wordpress.org/support/users/austingulati/)
 * (@austingulati)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/using-regular-expressions-with-redirection-plugin/#post-973774)
 * Try /blog/* => /
 *  [pro102](https://wordpress.org/support/users/pro102/)
 * (@pro102)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/using-regular-expressions-with-redirection-plugin/#post-973775)
 * I’ve got a similar question, need to redirect from [http://domainname.com/postname](http://domainname.com/postname)
   to [http://domainname.com/postid/postname](http://domainname.com/postid/postname).
 * If possible I would avoid using the redirection plugin but willing to use it 
   if it worked (tried yesterday, it created an infinite loop).
 * Is there a place to learn these “regular expressions” for htaccess? I’ll appreciate
   suggestions too for the line of code. Should be the only redirect I’ll need for
   quite some time.
 *  Thread Starter [jonisolis](https://wordpress.org/support/users/jonisolis/)
 * (@jonisolis)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/using-regular-expressions-with-redirection-plugin/#post-973776)
 * I found a couple of helpful articles on this subject here…
    [http://gulati.info/2009/01/using-redirection-plugin-wordpress/](http://gulati.info/2009/01/using-redirection-plugin-wordpress/)
   and here… Mod_Rewrite and Regular Expressions Part 2 of a mod_rewrite tutorial.
   [http://www.webmasterworld.com/forum92/4332.htm](http://www.webmasterworld.com/forum92/4332.htm)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘using Regular expressions with redirection plugin’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [jonisolis](https://wordpress.org/support/users/jonisolis/)
 * Last activity: [17 years, 3 months ago](https://wordpress.org/support/topic/using-regular-expressions-with-redirection-plugin/#post-973776)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
