Skip to content
Grav 2.0 is officially stable. Read the announcement →
General

Subdomain on subpage

Started by Markus Durrer 2 years ago · 5 replies · 242 views
2 years ago

This should work by default, if you remove subdomain config. And to redirect I'd probably add a CNAME entry to domain DNS records

2 years ago

The DNS entry is for a physical destination. Where is this in the GRAV structure? Surely it is not ../home/www/grav/user/page/08.test? Where do I physically call up the Test page?

2 years ago

Based on your original post, your Grav installation is on a test folder. After your reply, I actually have no idea what your setup is 😕

2 years ago

Sorry, perhaps I have expressed myself incorrectly.

The CMS GRAV is installed in the folder “../www/grav” and the domain mydomain.org is rooted to this folder.

Now I would like to root the subdomain test.mydomain.org (this does not have to be a subdomain, could also be another domain, e.g. test95.org) directly to the page https://mydomain.org/test', which is not on the root of the CMS? I don't want to have to create a redirect page on the root. Is that possible?

TXT

last edited 02/16/25 by Markus Durrer
2 years ago

@madu:
the domain mydomain.org is rooted to this folder.

What does that mean? I've never seens such expression, that domain is rooted to something. Is there some htaccess rewrite? Is there a redirect?

As I said, I would just add a CNAME entry

TXT
test.mydomain.org.  1   IN  CNAME   mydomain.org/test.

Suggested topics

Topic Participants Replies Views Activity
General · by jean-louis67, 3 weeks ago
2 308 3 weeks ago
General · by Andy Miller, 3 weeks ago
0 310 3 weeks ago
General · by Veehem, 4 weeks ago
0 263 4 weeks ago
General · by milkboy, 4 weeks ago
0 264 4 weeks ago
General · by ian russell, 1 month ago
2 335 1 month ago