• I am running some sites that when you type a capital in the URL, ie: website.com/Test it will convert to website.com/test and works great. This is what I WANT for all my other sites, however, I have several that is does not convert, so it just displays a Page Not Found error.

    Does anyone know what handles this conversion by default in WordPress? I also tried using a same wordpress theme that WORKS for a new site, but the new site doesn’t work.

    I know you can try to do all these things with the .htaccess file, which I guess if someone gave me a solution that worked there that would be fine…but I’m trying to track down why by default some of the wordpress sites do it, and then some do not….being that they are all hosted on my same host and have the same .htaccess files.

    Thanks in advance for any help!

Viewing 8 replies - 1 through 8 (of 8 total)
  • This depends thought on the OS that you have installed on your server. Linux is Case Sensitive while Windows not.

    Thread Starter emailjeffhere

    (@emailjeffhere)

    Thanks for the reply. And yeah, I have read that. But just like I said in my first post, I have some sites that do it, and other sites that do not do it. It is all installed on the same host, Powweb, which I believe is Linux. So in other words, why do I have a site that converts the case, and other one that does not?

    I already tried getting with my hosting support, and they said it’s a WordPress thing and get with them.

    ??

    Do you have urls of the sites that do and do not?

    Thread Starter emailjeffhere

    (@emailjeffhere)

    Sure, sorry, should have put them here before. A site that WORKS:
    https://midcitieschurch.org/About/ (the capital A will convert to lowercase).

    https://thejefflambert.com/about/ (if you put a capital A there it will just give a page not found).

    Check the .htaccess file. Are you sure they are the same?

    The url can being changed to lower case there, with

    RewriteBase /
    RewriteRule ^(.*[A-Z].*)$ $1 [CL,R=301,L]
    Thread Starter emailjeffhere

    (@emailjeffhere)

    I see that sort of code posted all over the internet in response to this solution…but I will say most say you need access to the httpd.conf file on the host, which I do not have and they will not edit. And everytime I try to put something like that in my .htaccess file I get a server error. Maybe you can help me with where I need to put it. Here is my .htaccess file:

    (This 1st part is in there so that www. just redirects to non-www.)

    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^www\.(.+)$
    RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    Thread Starter emailjeffhere

    (@emailjeffhere)

    I still have no idea why some of my sites work, and some don’t….but I guess I just blame it on my hosting. So the only things I’ve found that work are the following:
    https://stackoverflow.com/questions/4780158/how-to-rewrite-uppercase-letter-url-to-lowercase-without-rewritemap-or-manual-a

    If I add the above into my .htaccess, it works well. Or there’s also this plugin I found that pretty much does the same thing. You just install it and activate it and that’s it. It’s found here:

    https://www.unfocus.com/2007/08/31/case-insensitive-permalinks-plugin-for-wordpress/

    I tried the rewrite and also had the server unhappy.

    but I guess I just blame it on my hosting.

    I blame them for everything including the price of gas.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Capitals in URL are not converting to lower case’ is closed to new replies.