![]() |
htaccess question
If I want to redirect all Arabic Language Browsers would the following work:
RehahahahahaCond %{HTTP:Accept-Language} ar* [NC] RehahahahahaRule .* http://www.yahoo.com My question is about the "ar*" , is that correct? I would like to avoid having multiple lines for: ar-dz, ar-bh, etc... So I am guessing putting a * is a wildcard? Thx! |
:moon :moon :moon :moon
|
yes ar is correct, but you do not need the wild card.
|
There are some really good tools/tips for htaccess here:
http://www.clockwatchers.com/htaccess_tool.html :thumbsup Ivy |
But without the wild card I would need multiple lines to block
all the Arabic codes right? i.e.: RehahahahahaCond %{HTTP:Accept-Language} ar-dz [NC] RehahahahahaRule .* http://www.yahoo.com RehahahahahaCond %{HTTP:Accept-Language} ar-bh [NC] RehahahahahaRule .* http://www.yahoo.com RehahahahahaCond %{HTTP:Accept-Language} ar-eg [NC] RehahahahahaRule .* http://www.yahoo.com RehahahahahaCond %{HTTP:Accept-Language} ar-iq [NC] I would like to block all browsers that have ar followed by anything. So if not a *, what would I use? Thx! |
I believe if you put a start of line anchor ie: ^ in front of the language code it'll cover them all.
^ar [NC] would get ar-dz, ar-bh, etc... |
Arabic Language Browsers ?
For what ? :ak47: :BangBang: :1orglaugh |
Quote:
|
Quote:
http://www.webpimps.com/scripts/htaccess/ -Ben |
oh btw...
ar* * isn't the wildcard character the period (.) is. .* = anything zero or more times .+ = anything 1 or more times. -Ben |
Quote:
|
All times are GMT -7. The time now is 03:09 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123