Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 3 tasks
JedMeister opened this issue Apr 23, 2024 · 0 comments · May be fixed by #8290
Open
1 of 3 tasks

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

JedMeister opened this issue Apr 23, 2024 · 0 comments · May be fixed by #8290

Comments

@JedMeister
Copy link

  • 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

@JedMeister JedMeister linked a pull request Apr 23, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant