<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: AppEngine &#8220;Rewrite Rules&#8221;</title>
	<atom:link href="http://blog.engelke.com/2008/07/31/appengine-rewrite-rules/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.engelke.com/2008/07/31/appengine-rewrite-rules/</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Fri, 03 Feb 2012 14:58:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Klichuk Bogdan</title>
		<link>http://blog.engelke.com/2008/07/31/appengine-rewrite-rules/#comment-123</link>
		<dc:creator><![CDATA[Klichuk Bogdan]]></dc:creator>
		<pubDate>Sun, 20 Dec 2009 10:44:50 +0000</pubDate>
		<guid isPermaLink="false">http://engelke.wordpress.com/?p=507#comment-123</guid>
		<description><![CDATA[By the way, i coined a nice method to handle such problem,
when you have such urls ad &quot;/directory/&quot;, &quot;/something/&quot; and to provide correct 301 redirect to them from &quot;/directory&quot; and &quot;/something&quot; respectively:

from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app

class DirecotryHandler(webapp.RequestHandler):
    def get(self, tail):
        if tail == &#039;&#039;:
           self.redirect(&#039;/directory/&#039;, permanent=True);
        #TODO: respond to &quot;/directory/&quot; request

    def head(self, tail):
        if tail == &#039;&#039;:
           self.redirect(&#039;/directory/&#039;, permanent=True);
        #TODO: respond to &quot;/directory/&quot; request

application = webapp.WSGIApplication(
            [
                (r&#039;^/directory(/?)$&#039;, DirectoryPage),
            ])

def main():
   run_wsgi_app(application)

if __name__ == &quot;__main__&quot;:
    main()]]></description>
		<content:encoded><![CDATA[<p>By the way, i coined a nice method to handle such problem,<br />
when you have such urls ad &#8220;/directory/&#8221;, &#8220;/something/&#8221; and to provide correct 301 redirect to them from &#8220;/directory&#8221; and &#8220;/something&#8221; respectively:</p>
<p>from google.appengine.ext import webapp<br />
from google.appengine.ext.webapp.util import run_wsgi_app</p>
<p>class DirecotryHandler(webapp.RequestHandler):<br />
    def get(self, tail):<br />
        if tail == &#8221;:<br />
           self.redirect(&#8216;/directory/&#8217;, permanent=True);<br />
        #TODO: respond to &#8220;/directory/&#8221; request</p>
<p>    def head(self, tail):<br />
        if tail == &#8221;:<br />
           self.redirect(&#8216;/directory/&#8217;, permanent=True);<br />
        #TODO: respond to &#8220;/directory/&#8221; request</p>
<p>application = webapp.WSGIApplication(<br />
            [<br />
                (r'^/directory(/?)$', DirectoryPage),<br />
            ])</p>
<p>def main():<br />
   run_wsgi_app(application)</p>
<p>if __name__ == &#8220;__main__&#8221;:<br />
    main()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Engelke</title>
		<link>http://blog.engelke.com/2008/07/31/appengine-rewrite-rules/#comment-85</link>
		<dc:creator><![CDATA[Charles Engelke]]></dc:creator>
		<pubDate>Tue, 05 May 2009 02:14:27 +0000</pubDate>
		<guid isPermaLink="false">http://engelke.wordpress.com/?p=507#comment-85</guid>
		<description><![CDATA[I don&#039;t think it has anything to do with Java versus Python development.  Google apparently disabled this ability a few months ago, so you just can&#039;t do it.  Any request to a &quot;naked domain&quot; that reaches AppEngine will simply not be handled.

Instead you have to get somebody (your domain registrar is the only reasonable choice I can think of) to set up HTTP redirection for you.  Then, if somebody tries to open http://example.com/ that request will go to that server (your registrar&#039;s in this case) which will always respond with an HTTP redirect to http://www.example.com/.  That redirected request will go to Google AppEngine and be properly handled.

I posted more on this a few weeks ago &lt;a href=&quot;http://blog.engelke.com/2009/03/04/update-web-hosting-with-google-appengine/&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.

Hope this solves your problem for you.]]></description>
		<content:encoded><![CDATA[<p>I don&#8217;t think it has anything to do with Java versus Python development.  Google apparently disabled this ability a few months ago, so you just can&#8217;t do it.  Any request to a &#8220;naked domain&#8221; that reaches AppEngine will simply not be handled.</p>
<p>Instead you have to get somebody (your domain registrar is the only reasonable choice I can think of) to set up HTTP redirection for you.  Then, if somebody tries to open <a href="http://example.com/" rel="nofollow">http://example.com/</a> that request will go to that server (your registrar&#8217;s in this case) which will always respond with an HTTP redirect to <a href="http://www.example.com/" rel="nofollow">http://www.example.com/</a>.  That redirected request will go to Google AppEngine and be properly handled.</p>
<p>I posted more on this a few weeks ago <a href="http://blog.engelke.com/2009/03/04/update-web-hosting-with-google-appengine/" rel="nofollow">here</a>.</p>
<p>Hope this solves your problem for you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shyam</title>
		<link>http://blog.engelke.com/2008/07/31/appengine-rewrite-rules/#comment-84</link>
		<dc:creator><![CDATA[Shyam]]></dc:creator>
		<pubDate>Tue, 05 May 2009 00:50:15 +0000</pubDate>
		<guid isPermaLink="false">http://engelke.wordpress.com/?p=507#comment-84</guid>
		<description><![CDATA[Hi,

I am trying to set up the &quot;naked domain handling&quot; for the app engine in Java development .

Can you pls help me how to do it ?

Thanks]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am trying to set up the &#8220;naked domain handling&#8221; for the app engine in Java development .</p>
<p>Can you pls help me how to do it ?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alfredo</title>
		<link>http://blog.engelke.com/2008/07/31/appengine-rewrite-rules/#comment-64</link>
		<dc:creator><![CDATA[alfredo]]></dc:creator>
		<pubDate>Wed, 18 Feb 2009 03:10:19 +0000</pubDate>
		<guid isPermaLink="false">http://engelke.wordpress.com/?p=507#comment-64</guid>
		<description><![CDATA[thanks for showing us how to handle rewrites!

this is awesome... I thought there was no easy way to handle this... was driving me nuts...]]></description>
		<content:encoded><![CDATA[<p>thanks for showing us how to handle rewrites!</p>
<p>this is awesome&#8230; I thought there was no easy way to handle this&#8230; was driving me nuts&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

