It looks like the the location header is missing the protocol, so it is treating it as a relative location: > GET / HTTP/1.1 > User-Agent: curl/7.30.0 > Host: castleproject.org > Accept: */* > < HTTP/1.1 302 Redirect < Content-Type: text/html; charset=UTF-8 < Location: www.castleproject.org/ * Server Microsoft-IIS/7.5 is not blacklisted < Server: Microsoft-IIS/7.5 < X-Powered-By: ASP.NET < Date: Sat, 20 Sep 2014 04:50:10 GMT < Content-Length: 145 < <head><title>Document Moved</title></head> * Connection #0 to host castleproject.org left intact <body><h1>Object Moved</h1>This document may be found <a HREF=" www.castleproject.org/">here</a></body>
However, we shouldn't need to even host the non-www one ourselves. As I mentioned earlier if you add both a CNAME and A record GitHub Pages will ensure that users are redirected to the exact domain you've got in your "CNAME" file. This is how I've had my website jonorossi.com set up. On Sat, Sep 20, 2014 at 2:04 PM, Ken Egozi <egoz...@gmail.com> wrote: > This might be a meta refresh tag that lacks the http prefix. > > Btw as we are in charge of the server there can we look in IIS logs to > figure out if people actually are going to the non www address? > And perhaps set a permanent redirect rule while at it? > > I'd be happy to do so of I can get a temporary access to the machine. > > Sent from my Windows Phone > ------------------------------ > From: James Curran <james.cur...@gmail.com> > Sent: 9/19/2014 7:11 PM > To: Castle-Devel <castle-project-devel@googlegroups.com> > > Subject: Re: Moving away from Wordpress to Github pages > > I just tried (with FireFox) and in the URL bar we had: " > http://castleproject.org/www.castleproject.org/www.castleproject.org/www.castleproject.org/www.castleproject.org/www.castleproject.org/www.castleproject.org/ > " > > > Truth, > James > > On Fri, Sep 19, 2014 at 8:33 PM, Ken Egozi <egoz...@gmail.com> wrote: > >> Iirc this domain still points to the old server which tries to redirect >> to www but there is something messed up there. >> >> Sent from my Windows Phone >> ------------------------------ >> From: Krzysztof Kozmic <krzysztof.koz...@gmail.com> >> Sent: 9/19/2014 2:50 PM >> To: castle-project-devel@googlegroups.com; Jonathon Rossi >> <j...@jonorossi.com> >> >> Subject: Re: Moving away from Wordpress to Github pages >> >> going to http://castleproject.org (in Firefox at least) causes a >> redirect loop. >> >> Is it because the DNS records are still updating or is there something we >> need to do about it? >> -- >> Krzysztof Kozmic >> >> From: Jonathon Rossi <j...@jonorossi.com> <j...@jonorossi.com> >> Reply: castle-project-devel@googlegroups.com >> <castle-project-devel@googlegroups.com>> >> <castle-project-devel@googlegroups.com> >> Date: 20 September 2014 at 7:08:18 am >> To: Castle Project Development <castle-project-devel@googlegroups.com>> >> <castle-project-devel@googlegroups.com> >> Subject: Re: Moving away from Wordpress to Github pages >> >> Yep, once you commit a CNAME file and the DNS is working GitHub Pages >> will do that for you automatically to ensure you've only got got one URL >> serving the content. It's the same reason they'll automatically redirect >> the www or non-www site to the one you specify in the CNAME file. >> >> Thanks for getting the DNS updated. >> >> On Sat, Sep 20, 2014 at 1:52 AM, Henry Conceição < >> henry.concei...@gmail.com> wrote: >> >>> It's looks like the castleproject.github.io is redirecting to >>> www.castleproject.org. Is this expected? >>> >>> Cheers, >>> Henry Conceição >>> >>> >>> On Thu, Sep 18, 2014 at 8:56 PM, Jonathon Rossi <j...@jonorossi.com> >>> wrote: >>> > CNAME configuration added. >>> > >>> > I've set it to the castle domain with "www" since we used to always >>> use www. >>> > Also add an A record, GitHub Pages will automatically redirect the >>> non-www >>> > one for us. >>> > >>> > >>> > On Fri, Sep 19, 2014 at 2:12 AM, Henry Conceição < >>> henry.concei...@gmail.com> >>> > wrote: >>> >> >>> >> Looks good. >>> >> >>> >> Let me know when I must change the dns. >>> >> >>> >> Cheers, >>> >> Henry Conceição >>> >> >>> >> >>> >> On Thu, Sep 18, 2014 at 4:04 AM, Jonathon Rossi <j...@jonorossi.com> >>> >> wrote: >>> >> > Okay, I've done a first cut of the web site. I've got all the >>> content >>> >> > across >>> >> > mostly as is, however I cleaned a little bit up as I went. There >>> are a >>> >> > few >>> >> > rough bits but I'm happy to cut over to this site now and drop the >>> >> > WordPress >>> >> > one on the floor. We can all very easily make fixes to this site and >>> >> > accept >>> >> > pull requests from anyone too. >>> >> > >>> >> > http://castleproject.github.io/ >>> >> > >>> >> > Henry or Hammett, let me know if you are happy with it and I'll >>> commit >>> >> > the >>> >> > CNAME configuration so you can set up DNS: >>> >> > >>> >> > >>> https://help.github.com/articles/setting-up-a-custom-domain-with-github-pages >>> >> > >>> >> > On Tue, Sep 16, 2014 at 11:38 AM, Jonathon Rossi < >>> j...@jonorossi.com> >>> >> > wrote: >>> >> >> >>> >> >> Definitely, I haven't done anything on the issues for over a week. >>> >> >> >>> >> >> On Tue, Sep 16, 2014 at 11:11 AM, Krzysztof Koźmic >>> >> >> <krzysztof.koz...@gmail.com> wrote: >>> >> >>> >>> >> >>> awesome thanks guys. >>> >> >>> >>> >> >>> Jono, I would probably prefer migrating the website first and the >>> >> >>> issues >>> >> >>> later, mostly because of the hacks we're getting on Wordpress and >>> bad >>> >> >>> publicity that comes with it >>> >> >>> (https://twitter.com/paulstovell/status/511515143868395520) >>> >> >>> >>> >> >>> >>> >> >>> On 16 September 2014 09:45, Jonathon Rossi <j...@jonorossi.com> >>> wrote: >>> >> >>>> >>> >> >>>> Sorry for making the commitment to do this several weeks ago and >>> not >>> >> >>>> getting very far. I was actually going to pick things up again >>> this >>> >> >>>> week as >>> >> >>>> I just finished a project to a milestone on the weekend. >>> >> >>>> >>> >> >>>> I'm still good for doing stage 1 and 2 this week. >>> >> >>>> >>> >> >>>> I've also been cleaning up the issues on the YouTrack issue >>> tracker >>> >> >>>> when >>> >> >>>> I've had a chance so we can migrate what's left to GitHub Issues. >>> >> >>>> I'll >>> >> >>>> report on the progress and what's left to do this week also. >>> >> >>>> >>> >> >>>> On Tue, Sep 16, 2014 at 9:07 AM, Krzysztof Koźmic >>> >> >>>> <krzysztof.koz...@gmail.com> wrote: >>> >> >>>>> >>> >> >>>>> We've been discussing the move for a while now, I think it's >>> time to >>> >> >>>>> start doing something about it. >>> >> >>>>> >>> >> >>>>> The way I see it, we can do it in a few stages: >>> >> >>>>> >>> >> >>>>> Stage one >>> >> >>>>> >>> >> >>>>> - Set up a Github page for CastleProject organisation >>> >> >>>>> - Set up a Github page for major Castle repositories (Windsor, >>> Core, >>> >> >>>>> etc) >>> >> >>>>> >>> >> >>>>> This can be done by anyone who's a team member of the Castle >>> >> >>>>> organisation >>> >> >>>>> >>> >> >>>>> Stage two >>> >> >>>>> >>> >> >>>>> - copy the content from wordpress page to github pages. This >>> >> >>>>> involves a >>> >> >>>>> bit of tinkering with Github markdown, but I don't think it'd >>> be too >>> >> >>>>> time >>> >> >>>>> consuming. >>> >> >>>>> >>> >> >>>>> This can be done by anyone (pull request) >>> >> >>>>> >>> >> >>>>> Stage three >>> >> >>>>> >>> >> >>>>> - point the domain to the new page, and take Wordpress down >>> >> >>>>> >>> >> >>>>> This can be done by whoever manages the domain and the box >>> running >>> >> >>>>> Wordpress (I'm guessing Henry and/or Hammett) >>> >> >>>>> >>> >> >>>>> Stage four >>> >> >>>>> >>> >> >>>>> - styling the new pages. I'd consider this a lower priority but >>> >> >>>>> making >>> >> >>>>> it look nice and have some consistent branding would be nice. >>> >> >>>>> >>> >> >>>>> Again, I think anyone can pull request it. >>> >> >>>>> >>> >> >>>>> >>> >> >>>>> Call to action >>> >> >>>>> >>> >> >>>>> Now, to begin with, is anyone volunteering to help execute the >>> move, >>> >> >>>>> primarily stage two for now? Please raise your hand. >>> >> >>>>> >>> >> >>>>> -- >>> >> >>>>> You received this message because you are subscribed to the >>> Google >>> >> >>>>> Groups "Castle Project Development List" group. >>> >> >>>>> To unsubscribe from this group and stop receiving emails from >>> it, >>> >> >>>>> send >>> >> >>>>> an email to castle-project-devel+unsubscr...@googlegroups.com. >>> >> >>>>> To post to this group, send email to >>> >> >>>>> castle-project-devel@googlegroups.com. >>> >> >>>>> Visit this group at >>> >> >>>>> http://groups.google.com/group/castle-project-devel. >>> >> >>>>> For more options, visit https://groups.google.com/d/optout. >>> >> >>>> >>> >> >>>> >>> >> >>>> >>> >> >>>> >>> >> >>>> -- >>> >> >>>> Jono >>> >> >>>> >>> >> >>>> -- >>> >> >>>> You received this message because you are subscribed to the >>> Google >>> >> >>>> Groups "Castle Project Development List" group. >>> >> >>>> To unsubscribe from this group and stop receiving emails from it, >>> >> >>>> send >>> >> >>>> an email to castle-project-devel+unsubscr...@googlegroups.com. >>> >> >>>> To post to this group, send email to >>> >> >>>> castle-project-devel@googlegroups.com. >>> >> >>>> Visit this group at >>> >> >>>> http://groups.google.com/group/castle-project-devel. >>> >> >>>> For more options, visit https://groups.google.com/d/optout. >>> >> >>> >>> >> >>> >>> >> >>> -- >>> >> >>> You received this message because you are subscribed to the Google >>> >> >>> Groups >>> >> >>> "Castle Project Development List" group. >>> >> >>> To unsubscribe from this group and stop receiving emails from it, >>> send >>> >> >>> an >>> >> >>> email to castle-project-devel+unsubscr...@googlegroups.com. >>> >> >>> To post to this group, send email to >>> >> >>> castle-project-devel@googlegroups.com. >>> >> >>> Visit this group at >>> >> >>> http://groups.google.com/group/castle-project-devel. >>> >> >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >>> >> >> >>> >> >> >>> >> >> >>> >> >> -- >>> >> >> Jono >>> >> > >>> >> > >>> >> > >>> >> > >>> >> > -- >>> >> > Jono >>> >> > >>> >> > -- >>> >> > You received this message because you are subscribed to the Google >>> >> > Groups >>> >> > "Castle Project Development List" group. >>> >> > To unsubscribe from this group and stop receiving emails from it, >>> send >>> >> > an >>> >> > email to castle-project-devel+unsubscr...@googlegroups.com. >>> >> > To post to this group, send email to >>> >> > castle-project-devel@googlegroups.com. >>> >> > Visit this group at >>> http://groups.google.com/group/castle-project-devel. >>> >> > For more options, visit https://groups.google.com/d/optout. >>> >> >>> >> -- >>> >> You received this message because you are subscribed to the Google >>> Groups >>> >> "Castle Project Development List" group. >>> >> To unsubscribe from this group and stop receiving emails from it, >>> send an >>> >> email to castle-project-devel+unsubscr...@googlegroups.com. >>> >> To post to this group, send email to >>> >> castle-project-devel@googlegroups.com. >>> >> Visit this group at >>> http://groups.google.com/group/castle-project-devel. >>> >> For more options, visit https://groups.google.com/d/optout. >>> > >>> > >>> > >>> > >>> > -- >>> > Jono >>> > >>> > -- >>> > You received this message because you are subscribed to the Google >>> Groups >>> > "Castle Project Development List" group. >>> > To unsubscribe from this group and stop receiving emails from it, send >>> an >>> > email to castle-project-devel+unsubscr...@googlegroups.com. >>> > To post to this group, send email to >>> castle-project-devel@googlegroups.com. >>> > Visit this group at >>> http://groups.google.com/group/castle-project-devel. >>> > For more options, visit https://groups.google.com/d/optout. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Castle Project Development List" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to castle-project-devel+unsubscr...@googlegroups.com. >>> To post to this group, send email to >>> castle-project-devel@googlegroups.com. >>> Visit this group at http://groups.google.com/group/castle-project-devel. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Jono >> -- >> You received this message because you are subscribed to the Google Groups >> "Castle Project Development List" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to castle-project-devel+unsubscr...@googlegroups.com. >> To post to this group, send email to >> castle-project-devel@googlegroups.com. >> Visit this group at http://groups.google.com/group/castle-project-devel. >> For more options, visit https://groups.google.com/d/optout. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Castle Project Development List" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to castle-project-devel+unsubscr...@googlegroups.com. >> To post to this group, send email to >> castle-project-devel@googlegroups.com. >> Visit this group at http://groups.google.com/group/castle-project-devel. >> For more options, visit https://groups.google.com/d/optout. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Castle Project Development List" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to castle-project-devel+unsubscr...@googlegroups.com. >> To post to this group, send email to >> castle-project-devel@googlegroups.com. >> Visit this group at http://groups.google.com/group/castle-project-devel. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You received this message because you are subscribed to the Google Groups > "Castle Project Development List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to castle-project-devel+unsubscr...@googlegroups.com. > To post to this group, send email to castle-project-devel@googlegroups.com > . > Visit this group at http://groups.google.com/group/castle-project-devel. > For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "Castle Project Development List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to castle-project-devel+unsubscr...@googlegroups.com. > To post to this group, send email to castle-project-devel@googlegroups.com > . > Visit this group at http://groups.google.com/group/castle-project-devel. > For more options, visit https://groups.google.com/d/optout. > -- Jono -- You received this message because you are subscribed to the Google Groups "Castle Project Development List" group. To unsubscribe from this group and stop receiving emails from it, send an email to castle-project-devel+unsubscr...@googlegroups.com. To post to this group, send email to castle-project-devel@googlegroups.com. Visit this group at http://groups.google.com/group/castle-project-devel. For more options, visit https://groups.google.com/d/optout.