Support » How-To and Troubleshooting » [Resolved] 301 Redirect for new permalink structure
5 years, 3 months ago
I’d like help on putting in a 301 redirect into my htaccess file. My old permalink structure was:
I’d like it to be
What do I put in my .htaccess file?
Thank you so much for taking the time to help.
Pretty simple 🙂
RewriteRule ^blog/(.*)$ http://example.com/$1 [L,R=301]
This says ‘ANYTHING that starts with blog/ gets punted back to just /’
Put that ABOVE the ‘BEGIN WORDPRESS’ comment in your .htaccess 🙂
sweet!! thanks so much!