Hello
I want to redirect the website root to productos (products) page: 01.productos is the blog directory renamed, If I place in site.yaml this
redirects:
'/': 'productos'
In the url I get: http://website.com/new/esproductosesproductosesproductosesproductosesproductosesproductosesproductosesproductosesproductosesproductosesproductosesproductosesproductosesproductosesproductosesproductosesproductosesproductosesproductos
Please note that the added “es” is the language Spanish. I do not understand what is going on, I tried several other ways but does not work.
This is the browser error:
The page is not redirecting properly
Firefox detected that the server is redirecting the request for this address in a way that will never complete.
This problem may be happening due to having disabled cookies.
I am using Quark skeleton 2.0.0 and Grav and plugins are upgraded to latest versions.
Any Idea?
Thanks and regards
One last thing on this issue @anon76427325
I had to use the redirection trick because when I renamed the main 01.blog page of Quark skeleton with 01.productos the website lost the home, when I entered the website it gave me “Error 404” for the entrance page of the website, any Idea of what I missed in my changes or website configuration?
Thanks and regards
Thanks @anon76427325
After any change done, I always erase the cache via the Admin plugin > Dashboard >Clear cache >All cache, I do not use command line.
So this time I deleted the alias from user/config/system.yaml and saved without it:
home:
alias: '/productos'
Then I cleared cache with the command line instruction: bin/grav cache
3. But same problem, please see attached screen capture
6. Templates not touched, I copied a modified Quark Skeleton from other web site, and the home page was working in this new website until I changed the name of the 01.blog directory
.
Any more ideas or I go back to the alias? I would prefer to avoid tricks.
I installed the original Quark Blog skeleton and it has in system.yaml in line 1
home:
alias: '/blog'
I checked system.yaml in my previous installation that I used as base installation for the new oil website and that same 2 lines were in line 29 and 30 of system.yaml
In the new oil installation I had it also in lines 31 and 32, that I did not noticed :
For that reason it did not work when I renamed blog to productos.
I also had a lot of extra stuff in the system.yaml that is not part of the original Quark system.yaml, so I used only the original Quark system.yaml and I only added the additional language section, I placed the correct alias only to /productos and now is working fine.
I am sorry for my confusion, and thanks a lot for your patience and guidance @anon76427325