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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Subdomain on subpage

Started by Markus Durrer 1 year ago · 5 replies · 94 views
1 year 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

1 year 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?

1 year 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 😕

1 year 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
1 year 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 Jerry Hunt, 4 days ago
2 95 14 hours ago
General · by pamtbaau, 20 hours ago
1 61 19 hours ago
General · by Andy Miller, 1 day ago
0 47 1 day ago
General · by Marcel, 12 months ago
6 356 5 days ago
General · by Duc , 6 days ago
3 44 6 days ago