Thank you all for your replies.

I used Eclipse because I had already downloaded it and I started to figure 
out how to work with it, I didn't want to start again with something new 
like Python...

I simply copied all my website, its files and folders, to "myproject/war" 
and it was really simpler than I thought to upload it. I also linked my 
domain with Google Apps and added it my GAE app/website. my website is now 
live, but I have a few problems...

*1- *My website is currently on www subdomain and I have to redirect my 
root domain to it, apparently GAE doesn't allow me to host on the root 
domain and it's making some problems for me, for example I couldn't verify 
my root domain for Norton Norton Safe Web, because it requires to add a 
meta tag or a file to root domain. is there a way to host my website/app on 
the root domain instead?

*2-* I'm not sure why my website isn't indexed by Google yet, it's about a 
week that my website is online, I've verified and "Fetch as Google" in 
Google Webmaster Tools and I've links to it from my FB fan page and 
Twitter... do you think it's too soon to appear in the index? or have I 
done something wrong with GAE that doesn't allow Google to index it?

On Sunday, August 19, 2012 8:25:11 PM UTC-7, Robert Fischer wrote:
>
> Sorry, the logic to see if it's localhost isn't sound.
>
> This is a bit more robust and works to redirect users to the custom domain 
> (www.dealscorcher.com in my case):
>
> class HomepageHander(webapp2.RequestHandler):
>     def get(self):
>         if (self.request.url.lower().find('dealscorcher.com') is -1 and
>             self.request.url.lower().find('localhost') is -1):
>             self.redirect('http://www.dealscorcher.com')
>             return
>
> -Robert Fischer
> www.DealScorcher.com
>
> On Sun, Aug 19, 2012 at 8:14 PM, Robert Fischer 
> <[email protected]<javascript:>
> > wrote:
>
>> Hi Omne,
>>
>> I was trying to say you can check the 
>> url<https://developers.google.com/appengine/docs/python/tools/webapp/requestclass#Request_url>
>>  of 
>> the 
>> Request<https://developers.google.com/appengine/docs/python/tools/webapp/requestclass>object
>>  to generate a redirect from 
>> appid.appspot.com to whatever your domain is.
>>
>> Here's a quick snippet of code you can put at the beginning of your 
>> HomepageHandler's get method. It will redirect all *.appspot.com urls to 
>> your appid. I added my local address to my development server as well so I 
>> can still run the devserver.
>>
>> class HomepageHander(webapp2.RequestHandler):
>>     def get(self):
>>         if (self.request.url.lower() is not 'http://www.dealscorcher.com' 
>> or
>>             self.request.url.lower() is not 'http://localhost:9999'):
>>             self.redirect('http://www.dealscorcher.com')
>>             return
>>
>> -Robert Fischer
>> www.DealScorcher.com
>>
>
Robert, thank you for the help, but I'm not sure what is the " 
HomepageHandler's get method" ? where should I add this? 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/bDW0vIrom6AJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to