On Mar 3, 1:39 am, PW <pil...@gmail.com> wrote:
> Hello,
>
> I have registered a new domain with Google Domains and I currently
> have my app engine application linked towww.abc.com.  The problem is
> that I cannot find a way to forward "abc.com/def" to "www.abc.com/
> def".  It always redirect me towww.abc.comno matter what string I
> attach at the end.  Is this currently possible?  If it is not yet
> supported, is there any way to achieve this programmatically?
> (app.yaml, etc.)
>
> I want to show the same page for both of these URIs:  abc.com/def
> and  www.abc.com/def.


What I did in my app was to use a URL rewriting rule on the server
that my naked domain points to, if you use apache this on
the .htaccess should do the trick:

RewriteEngine on
RewriteRule ^(.*)$ http://www.yourdomainnamehere.com/$1 [R,NC]

[]s

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to