Apache ModReWrite question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dodger21
    Confirmed User
    • Jan 2003
    • 2680

    #1

    Apache ModReWrite question

    Im trying to redirect users based on country. Running into a problem negating something.

    RewriteEngine on
    RewriteCond %{ENV:myvar} !^AU$ [OR]
    RewriteCond %{ENV:myvar} !^US$ [OR]
    RewriteCond %{ENV:myvar} !^CA$
    RewriteRule ^(.*)$ http://www.redirecturl.com [L]

    So essentially, what this does is redirect EVERY country except for AU, US and CA. Doesn't seem to work. Shouldn't added the bang (!) negate the reg expression? Or do I have my syntax wrong?

    In any way...help!
    icq: 237055440
  • dodger21
    Confirmed User
    • Jan 2003
    • 2680

    #2
    fucking hahaha shit
    icq: 237055440

    Comment

    Working...