I’ve just come across a strange issue with the URL structure in our site. On some pages within my site, the url is not www.mysite.com, but qpbtrhigejjegihrtbpq.mysite.com or a variety of other gibberish letters instead of www. It’s not on all pages, and I’ve seen them in links running the Wayfinder snippet as well as files I’ve linked to using TinyMCE. I’ve checked the base_url within the template and have deleted and readded it, and all seems to be fine for now.
I will be upgrading to 1.0.3 this weekend, so that may take care of the issue. But has anyone else experienced something like this?
Thanks,
Amber
-
MODX Staff
- 10,725 Posts
If your DNS/hosting configuration is setup to accept requests from any subdomain, then xyz123.yourdomain.com will work to access your site, and if the first request to the page is from that location and you cache the site_url in the base tag, then everyone coming to that page will get links to xyz123.yourdomain.com instead of www. or just yourdomain.com. Either prevent access from other subdomains, redirect all requests not to www to www, or don’t cache the site_url in your base tag by using a snippet to return the value and calling in uncached.