Jump to content

Subdomain Case Sensitivity

Recommended Posts

Posted

Within Squarespace, I have established a subdomain to forward to an external website for my podcast with host name "listen." So, as far as I understand, listen.website.com and website.com/listen should take you to the external site. Which it does. My problem is I would also like LISTEN (all caps) to take you to the same place, and establishing a similar subdomain for host LISTEN does not seem to do the job -- i.e. it takes you to 404 page not found.

How do I cover all my case-sensitive bases for my subdomain?

website.com/listen and website.com/LISTEN and website.com/Listen should all take people to the same place.

Thanks for any info! 

  • Replies 2
  • Views 790
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted
3 hours ago, bkeithley said:

website.com/listen and website.com/LISTEN and website.com/Listen should all take people to the same place.

It's difficult to troubleshoot a specific issue without the real details. That said, I can tell you that the URL slug (the part after the domain name) is always case sensitive and, on Squarespace, you can only have lowercase slugs.

Did this help? Please give feedback by clicking an icon below  ⬇️

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

  • 1 month later...
Posted

@paul2009 Is there any way to make the url redirects case insensitive through squarespace features?

 

I'm currently using this code in the header:

<script>
var lowercasePath = window.location.pathname.toLowerCase();
if (window.location.pathname !== lowercasePath) {
  window.location.replace(window.location.protocol + "//" + window.location.host + lowercasePath + window.location.search);
}
</script>

But now the problem is my redirect links are randomly disappearing or are not added correctly.

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.