
The short answer: to a browser and to Google, /contact, /contact/, /Contact and /contact/index.html are four different addresses. On the server they may open the same page, give a 404 or redirect, depending on whether the path is a real folder, a real file or an address built by an application such as WordPress. If more than one answers 200, you have duplicate pages; if one gives a 404, somebody’s link is broken. The domain name does not care about capitals; the path, on a Linux server, does.
The variants, and what usually happens
| Variant | What usually happens | What you want |
| A real folder without the slash: /gallery | The server answers 301 to /gallery/ (Apache and LiteSpeed do this for folders). | Fine. Link to the version with the slash and save a hop. |
| A WordPress page with or without the slash | WordPress redirects to the form its permalink structure uses. | Fine. Internal links in that same form. |
| Capitals: /Contact | On a Linux server it is another file: a 404, or two copies if both exist. | Lower case always. Redirect the capitalised addresses already out there. |
| The index file: /index.html, /index.php | Opens the home page again, at a second address. | 301 to / and never link to index.html. |
| Double slash: /shop//shoes | Often opens the same page. | Fix the template or code that builds the link (a base address ending in “/” joined to a path starting with “/”). |
| Domain in capitals: WWW.asuaempresa.ao | Same address: the browser lower-cases the name. | Nothing to do. |
Choosing one form and enforcing it
|
|
|
|
|
|
| Do not add a rule that adds or strips the slash on top of what WordPress already does. Two rules that disagree (one strips the slash, the other adds it) make an endless loop: ERR_TOO_MANY_REDIRECTS. And test any new .htaccess rule with a 302 first, because the browser remembers a wrong 301. |
| File and folder names in lower case from day one avoid half of these problems. Anyone bringing a site from a Windows server, where capitals do not matter, meets this surprise first: moving a site between Linux and Windows. |
|
Not sure which form of the address your site should use, or did the rule cause a loop? Send us the domain and two variants that behave differently. Open a support ticket |
RECOMMENDED PRODUCT Web hosting with cPanel Domain and SSL included, daily backups and the panel you already know. from 5.940,00 Kz/mo (3-year plan, with coupon) See plans |











