SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)

    Mod_rewrite rule case-sensitivity question

    Apologies for asking a pure mod_rewrite question on this forum, but it gets more answers.

    Code:
    RewriteRule ^item/?$ items/index.php [QSA]
    Is there as way I get that to pickup and redirect urls like this too?

    /Item
    /ITEM

    without making cases for each derivative?

  2. #2
    play of mind Ernie1's Avatar
    Join Date
    Sep 2005
    Posts
    1,252
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    [NC] means No Case, it makes it case insensitive.
    my mobile portal
    ghiris.ro

  3. #3
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    duh, [slaps head].

    I found out about that NC rule on my own but had only tried it on the first rule, and forgot mod_rewrite filtered it on down to the other rules.

    Cheers Ernie1 !


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •