AfterInfinity
Verified User
- Joined
- Jul 16, 2021
- Messages
- 16
Hey there!
I'm scratching my head on this one and I know I shouldn't as the solution is probably very easy.
I've created a subdomain called autodiscover and by default DirectAdmin creates a folder in the domain's public_html folder with the subdomain's name.
This is good in my situtation as I want the php file to be accessible from autodiscover.domain.tld/autodiscover.php and also from domain.tld/autodiscover/autodiscover.php
Just a note: I have a .htaccess in the subdomain's folder that makes any request result in example.php being called.
What isn't going as planned is the case sensitivity.
When accessing the php file from autodiscover.domain.tld all goes well. Whatever I input after autodiscover.domain.tld/xxxx, uppercase or lower case doesn't matter, it results in autodiscover.php being loaded.
The issue rises when accessing the php file from domain.tld/autodiscover/. If I capitalize any of the letters in domain.tld/autodiscover/. Say for example domain.tld/Autodiscover/ a 404 Error page loads.
Do any clever minds here know how to make the subdomains folder case insensitive?
Kind Regards!
I'm scratching my head on this one and I know I shouldn't as the solution is probably very easy.
I've created a subdomain called autodiscover and by default DirectAdmin creates a folder in the domain's public_html folder with the subdomain's name.
This is good in my situtation as I want the php file to be accessible from autodiscover.domain.tld/autodiscover.php and also from domain.tld/autodiscover/autodiscover.php
Just a note: I have a .htaccess in the subdomain's folder that makes any request result in example.php being called.
Apache config:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ autodiscover.php [NC,L]
What isn't going as planned is the case sensitivity.
When accessing the php file from autodiscover.domain.tld all goes well. Whatever I input after autodiscover.domain.tld/xxxx, uppercase or lower case doesn't matter, it results in autodiscover.php being loaded.
The issue rises when accessing the php file from domain.tld/autodiscover/. If I capitalize any of the letters in domain.tld/autodiscover/. Say for example domain.tld/Autodiscover/ a 404 Error page loads.
Do any clever minds here know how to make the subdomains folder case insensitive?
Kind Regards!
