• Hi, i really have no clue what i’m doing, i’m just following tutorials. But [NC] doesn’t work in this case.

    What I really want is have https://www.mysite.com/blog to redirect to my subdomain blog.mysite.com. IT WORKS!

    BUT, https://www.mysite.com/BLOG or if the cases do not match exactly to ‘blog’, then it’ll be 404. Why is that?

    I tried replacing [L,R=301] to [NC] or [L,R=301,NC] and stuff, no luck.. Any help would be fabulous, thanks in advance.

    Options -Indexes +FollowSymLinks
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^mysite.com [NC]
    RewriteRule ^(.*)$ https://www.mysite.com/blog$1 [L,R=301]
    RedirectMatch 301 ^/blog/(.*)$ https://blog.mysite.com/$1

  • The topic ‘Rewritecond – NO case sensitivity [nc] doesn’t work..’ is closed to new replies.