I've been trying to make URLs shorter. For example, change
www.mydomainname.com/myapp/default/mypage
to www.mydomainname.com/mypage
I add the following code in routes.py under the web2py folder:
routes_out=(
('.*:/sevenpeng/default(?P<any>.*)', '\g<any>'),)
But this didn't work. The url still shows www.mydomain.com/default/mypage
Am i missing something?
Another problem, I deployed my website on google appengine, when I typed www.mydomainname.com, it directs to the right page, and the address is still www.mydomainname.com. However, when i typed directly mydomainname.com into browser, the address changes to 1.myapp.appspot.com/myapp. How can I fix this?
Thanks