When you move stuff around your site (say because you upgrade from b2 to WordPress), you should remember to redirect people from the old URLs to the new URLs.
Here is the info on how to do redirects on Apache using .htaccess files. (Thanks Scott)
Some people forget to do this until other people remind them to – sorry ’bout that and thanks for the reminder. 🙂
Do you redirect b2.php to index.php? How would you do that? I’ve been playing around with it a bit, but have so far not been able to make it work.
I want to make sure that it passes any parameters to the new link.
I don’t – I use my main site template and just integrated the loops in where I wanted them. Why not just rename b2.php to index.php?
Well I have, but I found that I get a lot of hits to b2.php still! So really I just want to redirect people from b2.php to index.php with the parameters intact.
Ahh, then yes, the redirect would make sense. 🙂
There is probably a way to do it in the .htaccess file, but I don’t know it yet so I’ll tell you how to do it in PHP.
Create a file like this:
ob_start(); // buffer any error message
and replace your b2.php file with it.
RedirectionI mentioned earlier that I have converted my site to WordPress, and set up link redirection for the old links. There’s some discussion going on over at Alex’s site about this subject as well. I figured I’d put up some notes about what I did.