Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

How to avoid case-sensitive URL’s in a Plesk website?

 
apachebackupdebiandomainsgo

Question

How to avoid case-sensitive URLs in Plesk when:

  • The file index.html exists under the website example.com home directory;

  • The file index.html is opening correctly via the browser in the following way:

    http://example.com/index.html

    while the opening of

    http://example.com/iNDeX.htML

    leads to the following error

    404 error (Not Found)

Answer

Warning: mod_speling works only for paths which are physically present on a file system and it is not compatible with websites which are using mod_rewrite to process URLs.

Use mod_speling.so Apache module:

Enable this module for a specific domain:

  1. Log into Plesk;

  2. Go to Domains > example.com > Apache & nginx Settings > Additional Apache directives;

  3. Add the following rows to the fields Additional directives for HTTP and Additional directives for HTTPS:

    • For Red Hat-based OSs:

      LoadModule speling_module /usr/lib64/httpd/modules/mod_speling.so
      <IfModule mod_speling.c>
      CheckSpelling On
      CheckCaseOnly On
      </IfModule>


    • For Debian-based OSs:

      LoadModule speling_module /usr/lib/apache2/modules/mod_speling.so
      <IfModule mod_speling.c>
      CheckSpelling On
      CheckCaseOnly On
      </IfModule>

  4. Click OK.

Enable this module for all domains:

  • For Red Hat-based OS's:

    1. Connect to the server via SSH;

    2. Create a backup of the Apache configuration file /etc/httpd/conf/httpd.conf:

      # cp /etc/httpd/conf/httpd.conf{,.bak}

    3. Edit file /etc/httpd/conf/httpd.conf to add the following rows:

      # vi /etc/httpd/conf/httpd.conf
      LoadModule speling_module /usr/lib64/httpd/modules/mod_speling.so
      <IfModule mod_speling.c>
      CheckSpelling On
      CheckCaseOnly On
      </IfModule>

    4. Reload the Apache service:

      # service httpd reload

    5. Make sure that spelling module was loaded:

      # httpd -M | grep speling_module
      speling_module (shared)


  • For Debian-based OS's:

    1. Connect to the server via SSH;

    2. Create a backup of the Apache configuration file /etc/apache2/apache2.conf:

      # cp /etc/apache2/apache2.conf{,.bak}

    3. Edit file /etc/apache2/apache2.conf to add the following rows:

      # vi /etc/apache2/apache2.conf
      LoadModule speling_module /usr/lib/apache2/modules/mod_speling.so
      <IfModule mod_speling.c>
      CheckSpelling On
      CheckCaseOnly On
      </IfModule>

    4. Reload Apache service:

      # service apache2 reload

    5. Make sure that spelling module was loaded:

      # apache2ctl -M | grep speling_module
      speling_module (shared)

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

How to Host a Go App on Plesk

Read More »

Your Complete .htaccess Guide: Including .htaccess Basics and More

Read More »

NGINX vs Apache – Which Is the Best Web Server in 2024?

Read More »
Knowledge Base

Websites on Plesk server are slow or show error 500 or PHP mail cannot be sent: ap_pass_brigade failed

Read More »

All websites hosted in Plesk are not accessible over HTTPS: 502 Bad Gateway or ERR_CONNECTION_REFUSED

Read More »

Can’t upload large files over PHP in Plesk: HTTP request length exceeds MaxRequestLen

Read More »

Pages of a website hosted in Plesk fail to load: Size of a request header field exceeds server limit

Read More »

Hosting Wiki

  • Django
  • RESTful Web Service
  • Cross Site Request Forgery (CSRF)
  • Cross-Origin Resource Sharing (CORS)
  • Server Redundancy
  • Cloud Service Architecture
  • Virtualizor
  • Postfix
  • On-Demand Services
  • Google Cloud CDN
  • PostgreSQL
  • DDoS
  • Bare Metal Server
  • Backup
  • Denial of Service
  • Red Hat Virtualization
  • Virtuozzo
  • Oracle VM Server
  • Citrix Hypervisor
  • Server Virtualization Software
  • Windows Server
  • Linux
  • Virtualization
  • MongoDB
  • HTTP/3
  • HTTP/2
  • Domain
  • VirtualMin
  • Hosting Control Panel
  • Plesk
  • NoSQL Database
  • Lighttpd
  • Apache Tomcat
  • NGINX
  • Apache
  • Web Server
  • DNS Server
  • SSH
  • URL
  • Colocation Hosting
  • Reseller Hosting
  • Cloud Hosting
  • VPS Hosting
  • Dedicated Hosting
  • Shared Hosting
  • Free Hosting
  • Managed Hosting
  • Email Virus Protection
  • HTTP
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family