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
239 stars 49 forks source link

[HELP NEEDED] Subfolder installation wrong URL's #124

Open orionseye opened 2 months ago

orionseye commented 2 months ago

Installed on 'localhost' using Laragon web server with SSL support Vvveb version 0.0.7 PHP version 7.4.30 | cgi-fcgi Server Apache/2.4.54 (Win64) OpenSSL/3.0.7 mod_fcgid/2.3.9

I have installed the CMS in a subfolder by edditing env.php and setting defined('V_SUBDIR_INSTALL') || define('V_SUBDIR_INSTALL', '/VvvebjsCMS');

The install was fine, i can access admin and all sections, but when trying to open the editor or preview any of the pages/posts, the URL's generated are wrong in following format. https://%2A.%2A.%2A/VvvebjsCMS/admin/?module=editor/editor&url=//*.*.*/VvvebjsCMS/page/terms-conditions&template=content/page.html

What exactly do i miss? Thanks for the nice CMS :) Capture

givanz commented 2 months ago

Thanks for the bug report, I was able to reproduce the bug using a hostname without tld and subdomain.

It's fixed in the last commit https://github.com/givanz/Vvveb/commit/41e99e4e1a21f05375c896f3e29ba3e1a751edb1

You need to update system/sites.php on your setup.

orionseye commented 1 month ago

Thank you givanz :)

Just discovered that the URL is still buggy, the .env is still left like it was defined('V_SUBDIR_INSTALL') || define('V_SUBDIR_INSTALL', '/VvvebjsCMS'); Captureurl

orionseye commented 1 month ago

Actually, what i get displayed is always start page of my localhost

Capture

givanz commented 1 month ago

I think this is caused by mod rewrite rule not updated for subfolder installation.

Please edit .htaccess from root folder and change line 42 from

RewriteRule ^ index.php [L]

to

RewriteRule ^ VvvebjsCMS/index.php [L]