VRMS icon indicating copy to clipboard operation
VRMS copied to clipboard

Fix VRMS redirect link without subdomain

Open trillium opened this issue 1 year ago • 0 comments

Overview

When a user types "https://vrms.io" or "http://vrms.io/" the browser doesn't connect to the website (i.e., if user is missing "www").

Action Items

  • [ ] Figure out how to automatically redirect users to https://www.vrms.io
  • [ ] Meet with DevOps to discuss issue if issue cannot be resolved within VRMS (DevOps meets on Wednesdays at 6-7pm Pacific - Zoom link)
See potential recommended steps below from ChatGPT

The potential problem you're describing is related to DNS (Domain Name System) configuration. `[www.example.com](http://www.example.com/)` and `[example.com](http://example.com/)` are technically different domains from a DNS perspective. When `https://www.example.com/` works but `https://example.com/` doesn't, it usually means that the DNS records for `[example.com](http://example.com/)` (often referred to as the "root domain" or "naked domain") are not correctly set up.

Here are a few things you could check:

  1. Check your DNS records: Ensure that you have an A record or CNAME record set up for [example.com](http://example.com/). If you're using an A record, it should point to the IP address of your server. If you're using a CNAME record, it should point to the correct domain (but note that CNAME records are not allowed on root domains according to the DNS specification, although some DNS providers allow this as an extension).

  2. Check your web server configuration: Your web server (e.g., Nginx, Apache) needs to be configured to respond to requests for both [www.example.com](http://www.example.com/) and [example.com](http://example.com/). This might involve setting up server blocks (in Nginx) or virtual hosts (in Apache) for both domains.

Screenshots "https://vrms.io" Screenshot 2024-04-29 at 9 52 20 PM

"http://vrms.io" Screenshot 2024-05-06 at 7 55 47 PM

Desired Behavior

Navigating to http://vrms.io or https://vrms.io will redirect to: https://www.vrms.io

Resources/Instructions

In order to do this we will need access to the AWS DNS.

trillium avatar Aug 30 '23 02:08 trillium