Issues on moving existent Grav to a different domain. Install on subdirectory but load as root. #3900
Unanswered
PeopleInside
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I hope this message finds you well 🎋🌻🎉
I'm trying to move an existent grav install from www.domain1.ext/grav to www.domain2.ext
I'm able to see the grav working at www.domain2.ext/grav but what I want do is load grav on root domain so www.domain2.ext
I tried to read and follow the guide found here: https://learn.getgrav.org/17/advanced/change-site-url but I was unable to see grav work on the main domain root.
Scenario 1, run in the domain root folder
The guide say to set in
system.yaml
the custom_base_url.I can find the
system.yaml
in grav/system/config folder then I set the base url as follow:custom_base_url: 'https://www.domain2.ext'
Then the guide say to set the session path to the new Grav site path
The default site path is set as:
path: /
Should I have to edit this to
path: /grav/
?I tried both option but still not working.
In the main root domain2 .htaccess file I set the rule:
But the results I always get is a infinite loop redirection.
The Grav never loads and the browser show me the redirection error.
Any help please?
If on my root domain I rename the index.html page that I have to off-index.html and in the root .htaccess file I insert the following rule:
Then I get 403 page access denied.
As soon I rename the index.html this is the file loaded on my mine root domain and not the grav folder but if I replace the .htaccess rule with what suggested by the guide so
I get redirect loop even not touching the index.html
Maybe I need a index.php file on root or something different?
Wordpress CMS use a index.php file even in the root.
Following the guide provided here https://learn.getgrav.org/17/advanced/change-site-url let me unable to see grav work on root domain.
I'm using a Plesk server.
I tried everything also some discussion suggest to alter the grav config system ( https://discourse.getgrav.org/t/grav-in-subfolder-without-site-visitors-ever-knowing/1995/13 ) but nothing works
The issue happen only while trying to setup an existent grav instance
If I setup a new grav no issues but I need just move my existent grab so what can be the cause of the infinite loop redirection?
Seems is not a server issue but a Grav issue.
Beta Was this translation helpful? Give feedback.
All reactions