jonisolis
Member
Posted 3 years ago #
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/
and not is it set up like this: http://domainname.com/
So what regular expression code do I need for this?
austingulati
Member
Posted 3 years ago #
I've got a similar question, need to redirect from http://domainname.com/postname to 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.
jonisolis
Member
Posted 3 years ago #
I found a couple of helpful articles on this subject here...
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