• Resolved barakda

    (@barakda)


    Hi,
    I’m using the Redirection plugin (thanks for writing it!).
    Some of my web address that came from my old site had some uppercase letters.
    I have noticed that domain.com/Pictures does NOT equal to domain.com/pictures.
    I a user is trying to get to /Pictures, and the rule is “/pictures” the plugin ignores the rule (and the user gets a 404 error).
    how can I create a 301 rule that ignore uppercase (and turns all letters to lowercase before redirect)?
    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter barakda

    (@barakda)

    Well, I have found the answer:
    using regex with the following syntex:
    (?i)\/gallery$
    This will define the source of the 301 redirection as /gallery or /Gallery or /gaLLery etc’

    THANK YOU!!!!!

    I don’t know why this isn’t listed in the FAQ! ??

    Ditto.

    As it’s PHP PCRE being used, you can also put the modifiers in the middle of the pattern and they apply to any remaining pattern. E.g.

    ^/s=(?i)thing

    Would match:

    /s=ThiNg
    /s=thing

    But not:

    /S=Thing

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Creating a 301 redirect that ignore uppercase’ is closed to new replies.