Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
Grav in subfolder without site visitors ever knowing
· 10 years ago
No problem. All I did was add my htaccess file and it worked. Looks like they added that to the github released version to make it easier to do what you're doing. Let me know if it works or not.
-
Grav in subfolder without site visitors ever knowing
· 10 years ago
Oh ok, I didn't realize you were referring to that. I was running the stable version of Grav before, so now I'm upgrading to the RC and making those PR changes manually. Thanks for your help!
-
Grav in subfolder without site visitors ever knowing
· 10 years ago
As @flaviocopes stated in https://github.com/getgrav/grav/pull/896 By setting custom_base_url_absolute and custom_base_url_relative in system.yaml, we can have Grav in a subfolder but run it in the do
-
Grav in subfolder without site visitors ever knowing
· 10 years ago
@flaviocopes: thanks! I'll give that a try. @paulmassendari: not sure I can change the dns target directory due to the host being used. Moving Grav a folder higher would put it in webroot, which I'm t
-
Grav in subfolder without site visitors ever knowing
· 10 years ago
So the rewrite rules I posted are correct...just need to change the system.yaml file. @flaviocopes mine works already without setting the system.yaml file. I was trying to get it to hide the subdomain
-
Grav in subfolder without site visitors ever knowing
· 10 years ago
What about changing your dns target directory? Or moving Grav a folder higher?
-
Grav in subfolder without site visitors ever knowing
· 10 years ago
@Gabe I've got this PR in place https://github.com/getgrav/grav/pull/896 it's meant to work on a domain/subfolder -> domain level, but should also work in your case. Give it a try.
-
Grav in subfolder without site visitors ever knowing
· 10 years ago
Thanks, but that gave me an internal server error. Are you sure that's correct? Don't I have to reference /grav/index.php somewhere to make sure Grav gets called?
-
Grav in subfolder without site visitors ever knowing
· 10 years ago
Try this RewriteEngine On RewriteRule ^$ mypage/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ mypage/$1
-
Grav in subfolder without site visitors ever knowing
· 10 years ago
I spent several hours today researching this and I can't seem to find a definitive answer whether this is possible. I use Apache and I have Grav installed in a subfolder of webroot (/public_html/grav)