WordPress.org

Ready to get started?Download WordPress

Forums

Can I UNDO case-sensitive URLS? (5 posts)

  1. kenwinstoncaine
    Member
    Posted 8 years ago #

    I installed WordPress in a folder on my server named Mind-Body-Spirit-Bulletin. All my permalink URLs use that uppercase/lowercase construction now. And if I type it all in lowercase, it returns an http 404 page-not-found error.

    Is there ANY way for me to undo that at this point without doing a full re-install?

    Examples:
    actual URL: http://www.wellnessu.org/Mind-Body-Spirit-Bulletin/

    won't work URL: http://www.wellnessu.org/mind-body-spirit-bulletin/

    Thanks,
    kwc

  2. niziol
    Member
    Posted 8 years ago #

    I don't think this is a WordPress problem, it's with your server. The WordPress index.php file is located in the above mentioned directories. So, if you type it in properly, the server directs the request to the WordPress files, whereas inputing it without the proper case, the WEB SERVER returns a 404 error.

    You would need to change something on your webserver so that it is case-insensitive when looking for directories. But I have no clue how to do it! Contact your webhost.

    Good luck,
    Michael.

  3. kenwinstoncaine
    Member
    Posted 8 years ago #

    Thanks. I thought so. But the server folks (my hosting company) wanted to foist it off on WordPress. So now I'm back to them...

    May or may not get fixed...

  4. WPChina
    Member
    Posted 8 years ago #

    Basically, Linux/Unix servers are case-sensitive and Windows servers are not case-sensitive. It is possible to change this, but it is really not suggested for Linux servers and is a pain in the butt. If you are on virtual hosting, then your hosting folks probably will not make this change for you and you will instead need to make the change either in your htaccess or within your own URLs.

    It is a best-practice to try to always use lower-case for everything from filenames of images to filenames of files to directory names. Note that email addresses are never case-sensitive...

  5. kenwinstoncaine
    Member
    Posted 8 years ago #

    Hi WordPressChina:

    You're right. My host tells me they will not make the change. Tells me to reinstall WordPress. Which I may.

    But first, if you're still watching this, what change would I make to my htaccess file to solve this?

    Second, what would happen if I created a new folder on my server with the same name, but all lowercase and copied all the files over to it from the current folder. Then went in and under permalinks made sure that my URLS were being written with lowercase. Would that work? Or would that just be a waste of time. Assuming waste of time,

    Third, what would happen if I did a reinstall of WordPress using the lowercase name, so that I would have two versions running and then move all my current posts over to the new one? Or do I have to do that. Will just changing the htaccess file fix things?

    Lot of questions, I know. And it's possible that once you answer the first one the problem is solved. Let me know what to change in htaccess to fix this. Please. And I'll tackle it.

    I assume that means that the posts currently named with the Upper/lower case formatting will just return dead links from then on?

    Thanks,
    kwc

Topic Closed

This topic has been closed to new replies.

About this Topic