By default in Grav, home page has two URLs:
domain.com
domain.com/home
In this situation, there is duplicate content (Google considers this to be a huge problem).
How can you delete /home?
By default in Grav, home page has two URLs:
domain.com
domain.com/home
In this situation, there is duplicate content (Google considers this to be a huge problem).
How can you delete /home?
Hi
I donβt know why the /home redirect in the βsiteβ section of the admin plugin never works but Iβve done my own redirect with a simple line in the htaccess file:
RewriteEngine On
RedirectMatch 301 /home/? /
I think You nedd in configuration setings enable - Hide home route in URLs
@NataliaB, Have you tested it? The settings does not have any impact on OPs urls.
In sytem.yaml, the setting hide_in_urls: false|true
will only have effect on the Urls of the children of the home page.
Eg, when having the following folders:
user/pages
βββ 01.home
β βββ 01.child
β β βββ default.md
β βββ default.md
βββ 02.typography
β βββ default.md
βββ images
When using hide_in_urls: false
, the url of the child page will be https://mydomain/home/child
When using hide_in_urls: true
, the url of the child page will be https://mydomain/child
See code in function Page.php::route() lines 1925-1935