Configure 301 Redirects for Websites on Google Cloud Platform

Configure 301 Redirects for Websites on Google Cloud Platform



To redirect webpages on your Google Cloud Platform website to a new location (URL), your best option is to configure a 301 redirect.

View the full tutorial with each command listed individually with images:

Explore more Google Cloud platform tutorials at:

Looking for high-performance managed hosting on Google Cloud? We recommend Kinsta:

Need quality shared hosting? Check out the #1 rated SiteGround:

Need a domain name? We recommend NameCheap domains:

Social Media:

Questions about cloud hosting? Join our Facebook community:

10 thoughts on “Configure 301 Redirects for Websites on Google Cloud Platform

  1. What did you think of this tutorial?
    If you want to view this tutorial with each command listed step-by-step, check out the version at onepagezen.com:
    https://www.onepagezen.com/301-redirects-google-cloud/
    Thanks for watching!
    Joe

  2. hello sir my wordpress website not open properly the error is redirected you too many times. so what to do please help me sir

  3. Hi Joe, I have issues with landing page redirects on my site.
    Can you please check this link below and see it this is normal?

    https://gtmetrix.com/reports/livewpenvironment.site/aFLEN0zF

  4. Output of config test was:
    AH00526: Syntax error on line 222 of /etc/apache2/apache2.conf:
    Redirect takes two or three arguments, an optional status, then document to be redirected and destination URL
    Action 'configtest' failed.
    The Apache error log may have more information.

  5. Hi bro, I did this and I'm getting too many redirects error. I can't access my site through my domain or my external ip. I don't know what to do

  6. Joe, had totally blackout. And none of the links to the portfolios pages aren't working too… can you help?

  7. I was getting a lot of traffic to a 404 page. Don´t know why.

    So i used the 404 php code to forward direct to my home page:

    <?php
    header("HTTP/1.1 301 Moved Permanently");
    header("Location: ".get_bloginfo('url'));
    exit();
    ?>

    Did tha 1 hour ago…. =/
    it would be interesting to change the way you suggested. I will try to undo the 404.php redirection.

    OR

    There is a way to overwrite this command and keep both?

    See ya!

Leave a Reply

Your email address will not be published. Required fields are marked *