Redirecting "/foo-post.html" to "/foo-post/" after moving blog
-
Hi there,
I moved my travel blog (blog.kait.us) from Blogger to self-hosted WordPress on Monday. I had done a practice run on a different sub-domain and it all went quite swimmingly.
I changed the permalinks structure to mimic the Blogger /year/mo/name format, and I had thought my links would be fine. But I didn’t notice that there was a slight different.
Old / BLogger URL
https://blog.kait.us/2011/05/international-cell-phone-forwarding.htmlNew / WordPress URL
https://blog.kait.us/2011/05/international-cell-phone-forwarding/I get a little traffic from google searches, particularly for specific places I’ve been and written about. The google results always link to the old format URL, resulting in the viewer getting a “Not Found” error.
Now, my PHP is a little rusty and I have never had much need to dive too deep into the WordPress code, so I wanted to ask some advice.
I *think* that I want to add some redirect code *somewhere* so that a user who arrives at blog.kait.us/nnnn/nn/ssssssss.html will get forwarded to blog.kait.us/nnnn/nn/ssssssss rather than shown a “Not Found” page.
Does that sound right? And perhaps, does anyone have an idea about where I would put that code or even better, know a tutorial I could follow? I know I’m not the first to move from Blogger to WP.
I DO TRULY apologize if this is something I should be ably to find out on my own. My searches so far have been dominated by people who want to redirect their old domain to their new one, and I (special snowflake that I view myself as) think this is a different type of problem. I have always used the same URL (blog.kait.us) both when Blogger hosted/powered my blog and now that Dreamhost/Wordpress do.
Many thanks for any info you could throw my way!
–Kait
- The topic ‘Redirecting "/foo-post.html" to "/foo-post/" after moving blog’ is closed to new replies.