Redirect www to non-www

Current Behavior

Going to www.foobar.omg.lol and https://www.foobar.omg.lol you get:

Error code: SSL_ERROR_INTERNAL_ERROR_ALERT

Expected Behavior

www.foobar.omg.lol and https://www.foobar.omg.lol should redirect to https://foobar.omg.lol

Steps to Reproduce

In your browser go to either www.foobar.omg.lol or https://www.foobar.omg.lol.

I noticed this is the behavior for the base domain (omg.lol).

Environment

OS: Linux
Architecture: x86_64
Browser: FireFox v116.0.3


Unless I’m mistaken, this is something that can only be configured in the server settings (Nginx, Apache, etc).

Related links

1 Like

You can actually knock this out right now! Here’s how:

  1. First, go to your address’s DNS page and add an A record for www that points to 5.78.24.5. (You can set the TTL to whatever you like, though maybe go with something lower like 300 while testing this.)
  2. Next, head over to your address’s Switchboard page. Scroll to the bottom and add www.arkhamcookie.omg.lol as an External Domain.
  3. After submitting that, check your external domain routes list — if you see www.arkhamcookie.omg.lol listed as “needing help”, just wait a little bit and refresh the page every now and then. Once the DNS stuff is caught up, that message will vanish and you’ll be able to configure the route.
  4. Finally, set the route to Redirect to a URL and plop in https://arkhamcookie.omg.lol.

Presto, you’ve configured your very own server-side redirect for www to the non-www version of your profile page!

Let me know if you run into any issues with the setup, or if you have any other questions.

1 Like



Maybe I’m missing something but I can’t seem to get it redirecting properly.

I can’t get my computer atm, so the screenshots are from my phone.

Resolved thanks to help from @adam in the IRC/Discord. :hearts:

1 Like