getgrav / grav

Modern, Crazy Fast, Ridiculously Easy and Amazingly Powerful Flat-File CMS powered by PHP, Markdown, Twig, and Symfony
https://getgrav.org
MIT License
14.46k stars 1.4k forks source link

Be able to change system paths/URL #1757

Closed embranceii closed 3 years ago

embranceii commented 6 years ago

A very basic step to aoid hacking attempts,is to allow for site wide system url changes through variables. e107 cms allowed that through the config file where you would specify where themes are stored,plugins etc.

Is this a viable feature asset for GRAV? My WP sites lately have been hacked over and over,since its easy to detect what cms a site is using UNLESS it uses something differently.

rhukster commented 6 years ago

This can be done by creating a setup.php and modifying the streams locations. https://learn.getgrav.org/advanced/multisite-setup

However, be aware that 'security through obscurity' is pretty much the weakest kind of security there is.

mahagr commented 6 years ago

Most of the settings can be changed from yaml file as well as only few are needed for initialization. Setup.php is needed only if you want to set non-standard multisite-setup or if you want to do something else before Grav loads...