Jump to content

allow upper case in url


Frank Vèssia
 Share

Recommended Posts

You can allow UTF8 characters in page names, or extend the default to allow for uppercase letters through the configuration. You need to update two config settings to tell ProcessWire to allow UTF8 page names and whitelist the characters you want to use, as well as update your .htaccess file to route those URLs to ProcessWire. This blog post has a detailed tutorial.

I haven't tested this, but if you only want to allow uppercase letters (and no UTF8 characters), it should be enough to add the uppercase letters to $config->pageNameWhitelist. The default .htaccess routing rule already includes A-Z characters, and uppercase letters are ASCII anyway ...

  • Like 2
Link to comment
Share on other sites

Can I suggest that a better tactic would be to convince the client the uppercase characters are a bad idea ?

It may or may not be an SEO issue: https://www.searchenginejournal.com/url-capitalization-seo/343369/

There is of course the issue that Linux vs Windows work differently in this regard with windows servers treating uppercase and lowercase as the same URL while linux treat them as different. Not that I expect the site will move to a Windows server in the future, but something to be aware of.

But mostly I think it just looks ugly ?

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...