ladybirdweb / faveo-helpdesk

Faveo Open source ticketing system build on Laravel framework

Home Page:https://www.faveohelpdesk.com/online-demo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Default `public/.htaccess` redirects www prefixed FQDN to naked domain

JedMeister opened this issue · comments

  • Faveo Version : v2.0.3 & development
  • PHP version : 8.2 (installed from Debian repos)
  • Database Driver & Version : MariaDB v10.11.6 (installed from Debian repos)
  • Server specification : Apache 2.4 on Debian 12/Bookworm

Description:

If the default Faveo Helpdesk public/.htaccess file is enabled, then it will redirect a www FQDN subdomain to naked domain.

E.g. www.example.com will redirect to example.com.

I imagine that this is unexpected behaviour for most users - it certainly was for me!

As something of an aside, the default .htaccess files still use Apache 2.2 access controls to deny access - see "Access control" section of Apache 2.2. -> 2.4 docs.

Steps To Reproduce:

In apache conf, enable .htaccess file:

[snip]
<Directory /var/www/faveo-helpdesk/public/>
        AllowOverride All        
        Require all granted
</Directory>
[/snip]

and use a subdomain starting with www. - see above example.

Downloaded from

  • master-branch

  • development-branch

  • release-tag