301 Redirect - Google App Engine Platform [closed]

1

I use the Google Cloud App Engine Platform to host Static Site and I'm having trouble making the Redirect 301 from version WWW to NOUN-WWW and also from version Http to Https .

The server is Google FrontEnd This is the Primary Domain - link

I would like the versions below to be redirected to the Main Domain link link link

The file I use to do Deploy is APP.yaml, through the Gcloud Interface.

App.yaml

runtime: php55 
api_version: 2.3

handlers:
   url: /
   static_files: index.html
   upload: index.html
   expiration: 0s
   http_headers:
     Link:  <assets/img/logoWebPresencaDigitalTransparent.png>; rel=preload; as=image

I researched Redirect and what they use is the HTAccess file for APACHE Servers, I do not know how to implement it through app.yaml.

Update

Following the @dhauptman tip I put the "secure: always" tag on each app.yaml upload statement and solved the http - > https

handlers:
   url: /
   static_files: index.html
   upload: index.html
   secure: always
   expiration: 0s

Problem now is how to use redirect_http_response_code: 301 to point to the domain www.presencadigital.co - > presencadigital.co

    
asked by anonymous 11.12.2018 / 19:02

0 answers