givanz / Vvveb

Powerful and easy to use cms to build websites, blogs or ecommerce stores.
https://www.vvveb.com
GNU Affero General Public License v3.0
384 stars 82 forks source link

Custom Admin URL #219

Open wiserpandacom opened 1 week ago

wiserpandacom commented 1 week ago

Hi. Love the simplicity! I wasn't able to change the admin url during installation. How can I rename it?

givanz commented 1 week ago

Hi

Thank you.

You can manually change the admin login path to something like /admin-123 by changing line 25 in config/admin.php to

'path'  => 'admin-123',

then rename /public/vadmin to /public/admin-123

Delete /public/admin/index.php to disable the default /admin login page after checking that /admin-123/index.php page works.

Changing admin login page only works if your htdocs is set to /public folder.

wiserpandacom commented 1 week ago

Thanks for your response. On cPanel, I tried installing on root /public_html directory and could not make admin rename work. I see that you're listing /public instead of /public_html.

Also tried cPanel domain document root as /vvveb/public. No luck.

givanz commented 1 week ago

If you can't change your htdocs folder to /public_html/public then you change your admin login page path by creating a new folder like /public_html/admin-123/ and move /public_html/admin/index.php to /public_html/admin-123/index.php .

Then you can use /admin-123/index.php to login.