WordPress.org

Ready to get started?Download WordPress

Forums

site name differentiate upper and lower case (8 posts)

  1. xzoom
    Member
    Posted 2 years ago #

    Hi!

    Do you know if it is possible not to differntiate upper an lower case for each site name?

    http://www.domain.com/site --> ok

    http://www.domain.com/SIte --> I get a 404 theme error

    Thanks!

  2. Welcome to using Unix.

    Site and site are different things. You can use .htaccess to redirect Site to site, but they're going to cause wacky conflicts if you try to make two separate sites called Site and site.

  3. xzoom
    Member
    Posted 2 years ago #

    In fact, I think you can't create Site and site because wordpress doesn't allow it...

    So, the only thing is to do a htaccess rule to redirect ... a little mess if you are talking about multisite and we know Unix does difference upper and lower case... what usually do you do in your multisite plattforms?

    Thanks a lot!

  4. I use all lowercase. All the time. Actually I don't have an issue with WP pages. domain.com/About and domain.com/about both work for me. Weird.

  5. xzoom
    Member
    Posted 2 years ago #

    Perfect for you! but what is the secret? do you have some htacess rule? or maybe is due server configuration..

    Thanks!

  6. I think it's my server config, tbh. I don't remember ever doing anything for it.

    Aha! Research! It works on pages and posts, but not on SubSites. Well. That's interesting.

    Anyway.

    //301 Redirect Entire Directory
    RedirectMatch 301 ^/Sitename/(.*) http://domain.com/sitename/$1

    Should do it.

  7. xzoom
    Member
    Posted 2 years ago #

    Thanks Ipstenu :)

    //301 Redirect Entire Directory
    RedirectMatch 301 ^/Sitename/(.*) http://domain.com/sitename/$1

    This redirect would works for only one sitename (or all you want, but you have to create the rule for each one), so I have to look into and see if is is possible to create a rule that works for any sitename.

    Here there is a possible solution:
    http://stackoverflow.com/questions/2923658/convert-to-lowercase-in-a-mod-rewrite-rule

    I have to try and see if this works in multisite platform.

  8. That should work... and I'm adding it to my bag of tricks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.