Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
09-10-2008, 11:57 AM #1
- Join Date
- Sep 2008
- Thanked 0 Times in 0 Posts
I hope someone can help me.
I'm porting a blog from an extrememly restrictive provider onto a self-hosted solution. I don't want to lose bookmarked direct traffic and inbound links. The trouble is the restrictive blog provider doesn't allow server-side scripting or access to .htaccess files.
I've come up with an ingenious way of redirecting the traffic using a find and replace feature on the blog provider. I just need a script that will do the trick.
I need to:
- Take the URL the page is on... (aychttp://blogname.swagblogs.com/my_weblog/2008/09/crappy-name.html)
- ...and replace the base with my new domain... (aychttp://www.goodblog.com/2008/09/crappy-name.html)
- ...then lose the .html extension... (aychttp://www.goodblog.com//2008/09/crappy-name)
- ...then send the browser onto the new URL
- The .html extension may not always be present
Can anyone help me please? I realise this is cheeky but I'm at my wit's end with this crappy blog hoster and I regret ever going with them!
Thanks in advance
09-10-2008, 03:42 PM #2Code: