www for subdomain

Created on 3 October 2013, almost 12 years ago
Updated 2 May 2025, 2 months ago

I have tried every kind of configuration possible and I cannot get the following to work:

I have a main domain and a subdomain, but ONE SINGLE SITE, not multisite

mydomain.com
subdomain.mydomain.com

With everything set up as per the instructions I can visit subdomain.mydomain.com and i can see my site ok, but if i click a Drupal internal menu item, for example a link which points to:

/mypath

it tries to go to:

www.subdomain.mydomain.com/mypath (with the www)

which results in page not found.

If i manually enter into the browser :

subdomain.mydomain.com/mypath (without the www)

This works.

I have tried uncommenting the lines in .htaccess to redirect to the NON www site - this results in the main domain redirection to non-www but the subdomain still has www.

I have tried adding the non-www code to .htaccess listed here: https://drupal.org/node/1358644 - same result as above

I have tried turning on the www prefix handling in advanced settings as described here: https://drupal.org/node/1121614#advsettings - same result as above

No matter what i do the subdomain always has the www and results in page not found.

Any ideas?

πŸ’¬ Support request
Status

Closed: outdated

Version

3.10

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom problue solutions Northern Ireland

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024