Urlrewriting Blogger.com Archives

rated by 0 users
This post has 5 Replies | 3 Followers

Top 500 Contributor
Posts 54
Points 795
tigermain Posted: Wed, Sep 27 2006 3:31 PM

Today I took the "journey" by Jeff Bishop (http://jeffbishop.net/archive/2006/05/21/690.aspx) and converted my Blogger.com account to CS (it took at whole 1/2 hour)

I have since converted to a single blog thanks to Dan Barels code (http://blog.danbartels.com/archive/2005/12/27/1138.aspx), preferred this method to the Qygen implementation.

But now I dont want to loose my permanent links. They still work by point to the archived html files but now Im in CS I want rid all together. So what I need to know is how do I rewrite a url such as

http://www.mydomain.com/2006/09/even-more-of-geek.html

To my CS equivalent 

http://www.mydomain.com/archive/2006/09/21/Even-more-of-a-geek.aspx

 

Top 500 Contributor
Posts 91
Points 1,145
Lynque replied on Wed, Sep 27 2006 3:45 PM

If you have root access to the server it's a case of a 301 redirect.

i.e. in the httpd.ini file at the root of the server add this

RewriteRule http://blog.webdynamix.biz/* http://www.mydomain.com/ [I. RP]

google the right syntax

  • | Post Points: 20
Top 500 Contributor
Posts 54
Points 795
tigermain replied on Wed, Sep 27 2006 6:02 PM

Sorry I think you missed the point, yes I have route access but I need to change the .html and file name to the new cs structure using some form of URL rewrite rule

But thanks for your attempt 

  • | Post Points: 5
Top 500 Contributor
Posts 54
Points 795
Bump any help???
  • | Post Points: 20
Top 500 Contributor
Posts 91
Points 1,145
Lynque replied on Mon, Oct 9 2006 1:15 PM

 Some editors such as Dreamweaver (and I think) Homesite have built in Regular Expression tools in which you can look for typical patterns in file names such as .html, you can then swap it for .aspx. I think you will still need to use "RegEx" in your httpd.ini file to rewrite the url but this can be tricky.
Also make a back up of your site first and test the regex when trying to rewrite the file name itself, regex is a handy tool for jobs like this but can be devastatingly powerful because you can't ctrl+Z back to the original state.

I hope I had a better understanding this time...

I also hope this helps

 

 

  • | Post Points: 20
Top 50 Contributor
Posts 338
Points 3,985
Logik! replied on Mon, Oct 9 2006 1:27 PM

Take a look at this thread, as it addresses a similar problem:

http://communityserver.org/forums/thread/551009.aspx

Logik!
Talking Out Loud with ASB
  • | Post Points: 5
Page 1 of 1 (6 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com