troubleshooting Question

301 Redirect on changed blog permalinks

Avatar of Marisa
MarisaFlag for United States of America asked on
Apache Web ServerBlogsWordPress
4 Comments2 Solutions577 ViewsLast Modified:
I just changed my permalink structure in Wordpress from:

/blog/2012/02/sample-post/

to:

/blog/postname

Because I thought it would be good for SEO. Since Wordpress updates your .htaccess file after changing these settings, I thought it would set up 301 redirects from all the old post URLs to the new ones, but all it did was insert this in there:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>

How do I redirect all the old post URLs to the new ones?

I tried the following, but it didn't work:
redirect 301 /2011/05/drop-a-note-make-a-smile/  http://stadriemblems.com/blog/drop-a-note-make-a-smile/
ASKER CERTIFIED SOLUTION
Jason C. Levine
Don't talk to me.

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros