Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Cloudron Forum

Apps | Demo | Docs | Install

Change domain aliases from 302 (temporary) to 301 (permanent)

Scheduled Pinned Locked Moved Solved Feature Requests
9 Posts 3 Posters 64 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • marcusquinnM Offline
    marcusquinnM Offline
    marcusquinn
    wrote on last edited by
    #1
    • https://docs.cloudron.io/apps/#aliases
    • https://stackoverflow.com/questions/1393280/http-redirect-301-permanent-vs-302-temporary

    I believe 301 redirects are the correct here, please 🙂

    (otherwise you end up with a random mix of the aliases in SERPs)

    If you have some reason or use for 302/Temporary, then maybe make that optional, but I believe most of what this will be used for should be 301/Permanent.

    Especially important when you've made a website under a dev URL that got indexed somehow, and then moved it to www to go live. (Yes, I know, should block dev URLs with robots.txt, if you remember.)

    We're not here for a long time - but we are here for a good time :)
    Jersey/UK
    Work & Ecommerce Advice: https://brandlight.org
    Personal & Software Tips: https://marcusquinn.com

    1 Reply Last reply
    0
  • girishG Offline
    girishG Offline
    girish Staff
    wrote on last edited by
    #2

    Aliases don't redirect at all, it's up to the app to do whatever it wants. Maybe your app is misconfigured?

    Only redirections redirect - https://docs.cloudron.io/apps/#redirections . 302 is correct here since it allows people to move around URLs as they see fit without having to worry about long term implications.

    marcusquinnM 1 Reply Last reply
    0
  • marcusquinnM Offline
    marcusquinnM Offline
    marcusquinn
    replied to girish on last edited by
    #3

    @girish Sorry, wrong choice of words then, I mean redirections.

    It's WordPress. I'm not sure you can do a 302 to a 301. Natural place for this, being that's it domain redirect and not path, is at the DNS level, since you're already offering one type of 30x in that setting.

    It's a long term implication I need (positive implication).

    How about an option dropdown for "301 Permanent", "302 Temporary" on Redirections, then please?

    If I'm doing my job right, it will always be towards achieving positive permanence, as quickly as possible 🙂

    We're not here for a long time - but we are here for a good time :)
    Jersey/UK
    Work & Ecommerce Advice: https://brandlight.org
    Personal & Software Tips: https://marcusquinn.com

    1 Reply Last reply
    1
  • girishG Offline
    girishG Offline
    girish Staff
    wrote on last edited by
    #4

    I actually don't mind changing the default to 301 instead of the current 302. I think the most common case for redirections is the www -> bare domain or vice versa. In that case, the 301 is best.

    We did 302 initially because we thought when people are moving around domains it's more convenient.

    marcusquinnM 1 Reply Last reply
    2
  • marcusquinnM Offline
    marcusquinnM Offline
    marcusquinn
    replied to girish on last edited by
    #5

    @girish With 302, search engines can end up with a mix of subdomains in the SERPs, whereas with 301, they'll update it to the authoritative final destination. I think 302 is more for if redirecting to somewhere where you wouldn't later have the control to redirect a 301 back.

    We're not here for a long time - but we are here for a good time :)
    Jersey/UK
    Work & Ecommerce Advice: https://brandlight.org
    Personal & Software Tips: https://marcusquinn.com

    1 Reply Last reply
    1
  • robiR Offline
    robiR Offline
    robi
    wrote on last edited by
    #6

    Or make it a radio button selection and choose the type? Best of both!

    Life of sky tech

    1 Reply Last reply
    0
  • girishG Offline
    girishG Offline
    girish Staff
    wrote on last edited by
    #7

    I tried a few - google.com , digitalocean.com, cloudflare.com , microsoft.com, apple.com . They all do a 301 to www. Big tech has spoken 🙂

    1 Reply Last reply
    4
  • girishG Offline
    girishG Offline
    girish Staff
    wrote on last edited by
    #8

    OK, I switched it for next release.

    1 Reply Last reply
    3
  • girishG girish marked this topic as a question on
  • girishG girish has marked this topic as solved on
  • marcusquinnM Offline
    marcusquinnM Offline
    marcusquinn
    wrote on last edited by
    #9

    Cloudron community teamwork wins again 🙂 🤜🤛 🙂

    We're not here for a long time - but we are here for a good time :)
    Jersey/UK
    Work & Ecommerce Advice: https://brandlight.org
    Personal & Software Tips: https://marcusquinn.com

    1 Reply Last reply
    2

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Login

  • Don't have an account? Register

  • Login or register to search.