GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Apache ModReWrite question (https://gfy.com/showthread.php?t=391044)

dodger21 11-19-2004 01:37 PM

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!

dodger21 11-19-2004 01:37 PM

fucking hahaha shit


All times are GMT -7. The time now is 03:25 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123