Porting a Django+Apache app in GAP - Where to set Redirect 301 that now are in httpd.conf Apache file?

31 views
Skip to first unread message

Giancarlo Facoetti

unread,
Sep 23, 2019, 9:20:09 AM9/23/19
to Google App Engine

Hello all, I'm porting a webapp (Django+Mysql+Apache) in Google App Engine. Everything is going well, but I don't know how to manage the old redirects 301.

The original version uses the httpd.conf file of Apache with directives likes this:

Redirect 301 /old-url/ www.mysite.com/new-url/

How can I set this kind of redirects in GAE? thank you very much

Message has been deleted

Yasser Karout

unread,
Sep 26, 2019, 3:23:28 PM9/26/19
to Google App Engine
Hello,

For App Engine, the webserver is usually setup for you depending on what runtime you use, so you would not need Apache for Python. You can setup redirects within your code, I found this guide with a sample that might be helpful to you [1]. If you want to port your application as is, it might be easier to use Compute Engine as you use the stack you are already using [2]. 

If you experience any issues with your code when setting up, I suggest posting a detailed question on Stackoverflow as it will have more visibility within the community.


Reply all
Reply to author
Forward
0 new messages