usmannasir / cyberpanel

Cyber Panel - The hosting control panel for OpenLiteSpeed
GNU General Public License v3.0
1.53k stars 591 forks source link

[BUG] Creating domain and or sub-domain should auto add default htaccess file in root #1230

Closed master3395 closed 6 months ago

master3395 commented 6 months ago

When you create a new domain or sub-domain with Apache setup, it should create a "default" or "dummy" htaccess file in the root, in order for the user to know if they got it enabled, and perhaps fix any minor hiccups, such as an internal error 503 would happen.

usmannasir commented 6 months ago

what should be default content of that ? i mean how would an empty file help user?

master3395 commented 6 months ago

what should be default content of that ? i mean how would an empty file help user?

By that I mean, as a reference to help the user see how the htaccess file could look, or add a readme file, that explains how htaccess should be when using the apache setup?

usmannasir commented 6 months ago

.htaccess file looks pretty much same weather its Apache, OLS, LSWS Ent. I believe we should not create it, it will confuse users.

Because when ever they will install WordPress .htaccess file is found to come, so I don't feel the need for it.