1 fallstorm Sep 05, 2005 07:42
3 kwa Sep 07, 2005 03:28
I see [url=http://forums.b2evolution.net/profile.php?mode=viewprofile&u=1809]personman[/url] needs to be convinced: ;)
- Imagine you publish a post, ping blog pinging services, send trackbacks and then, you discover you misspelled a word in the URL! You've got the choice to either do nothing and leave that ugly error on your blog, or to fix the URL, with the lost of all the visitors coming to the previous, erroneous, obsolete and now blank page. Post Redirect Hack makes possible to easily redirect visitors from a b2evolution blog post to another post or even any URL without the use of a complicated and not always available .htaccess file![/list:u]You can get the requested hack:
from the [url=http://forums.b2evolution.net/viewtopic.php?t=5346]Post Redirect Hack[/url] thread on [url=http://forums.b2evolution.net/]b2evolution forums[/url];
[*]or from its "official" [url=http://blog.lesperlesduchat.com/dev.php/2005/09/07/b2evolution_post_redirect_hack]b2evolution: Post Redirect Hack[/url] on [url=http://blog.lesperlesduchat.com/dev.php/2005/09/07/b2evolution_post_redirect_hack]My Own Little Development Blog[/url].[/list:u]Thanks [url=http://forums.b2evolution.net/profile.php?mode=viewprofile&u=3508]fallstorm[/url] for this request! I've been too lazy to write that hack without that motivation people are (maybe?) going to use it! :p
You can do this with .htaccess and a 301 redirect. Open up your .htaccess file and add this.
Note that the first url doesn't include the domain name, but the second one does. A 301 redirect is nice because the search engines will take note that the page has moved.