vyck24
November 7, 2025, 3:09pm
1
nginx + virtualmin+drupal 10
I need to redirect www.example.com to example.com but i cant because when i change in .htacces (drupal file) no results. How to change in Virtualmin ? Thanks
SYSTEM INFORMATION
OS type and version
ubuntu 22.10
Webmin version
2.520
Virtualmin version
7.50.0 GPL
Webserver version
Nginx
Related packages
SUGGESTED
Stegan
November 7, 2025, 3:38pm
2
Virtualmin -> Web Configuration -> Web Options # Redirect All Requests to SSL Site = Yes
.htaccess is the garbage you get/use with Apache nothing to do with Nginx
1 Like
vyck24
November 7, 2025, 4:04pm
3
Is activated but I asked not about this i need to redirect my domen with www –https://www.examaples.com to non ---- https://examaples.com . Normaly i can do in .htaccess in drupal file but … i have nginx
Ilia
November 7, 2025, 4:29pm
4
@Jamie , do you remember implementing “Redirect to canonical domain” option for Nginx systems?
Jamie
November 8, 2025, 5:47am
5
Yes that should work, and it’s implemented using redirects in nginx.conf rather than the .htaccess files.
Ilia
November 8, 2025, 10:09am
6
Cool! But could you point me to the code where it’s done, both in Virtualmin and the Nginx plugin?
Jamie
November 8, 2025, 11:34pm
7
My apologies, since this capability depends on hostname-specific redirects it’s not currently implemented for Nginx.
2 Likes
system
Closed
January 7, 2026, 11:34pm
8
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.