What is mod_speling?

VPS

Dedicated

What is mod_speling?

You can add modules to Apache servers on VPS and Dedicated accounts for extra functionality. One such module is mod_speling. mod_speling gives Apache a way to ignore capitalizations and up to one spelling error. When users have to enter URLs manually, wrongly capitalizing or misspelling a word can result in an error. For example, www.example.com/home.html is not the same as www.example.com/Home.Html.

With mod_speling setup, the server can overlook most minor errors like this and process the URL without issue. To see mod_speling’s developer documentation, visit the Apache documentation mod_speling page.

How do I use_mod_Speling?

Setting up mod_speling requires two steps: enabling it and adding directives to your .htaccess.

Enabling mod_speling

You can enable mod_speling in your VPS or Dedicated Account Control Center (ACC). To enable, follow these steps:

  1. Log in to the ACC on your VPS or Dedicated account
  2. In the left sidebar, click Dedicated, then click Apache Options in the drop-down
  3. In the Apache Module section, check the box next to mod_speling
  4. Click the Make Changes button

This will enable the module on your server, though it may take up to 15 minutes for the change to go into effect.

Add Spelling and Capitalization Checks to .htaccess

The next step is to add the spelling and capitalization checks to the server’s .htaccess files. For information about accessing your .htaccess, see our Accessing Your .htaccess File article.

In the .htaccess file, add the following code:

<IfModule mod_speling.c>
    CheckSpelling on
</IfModule>

Save your .htaccess file so that the changes can go into effect.

You may now want to check your configuration to see if it works. Try entering a capitalization that doesn’t exist in your URL. The server should automatically take you to the page even with the capitalization in the URL.

Updated on February 4, 2019

Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support