Afficher un message
Vieux 19/03/2005, 08h10   #3
licheng
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Possible to use wildcard in.htaccess?

On Fri, 18 Mar 2005 19:55:06 +1030, Tim <tim@mail.localhost.invalid>
wrote:

>> In .htaccess, we can use
>> SetEnvIfNoCase Referer "^http://mywebsite\.com/" local_ref=1
>> But how can we specify *.mywebsite.com? For example,
>> content.mywebsite.com
>> web.mywebsite.com
>> pub.mywebsite.com
>> company.mywebsite.com

>The dot is a wildcard in regex expressions, itself. You don't need the
>asterisk for that sort of thing.


So the correct syntax is ...?

SetEnvIfNoCase Referer "^http://.mywebsite\.com/" local_ref=1

or

SetEnvIfNoCase Referer "^http://.\.mywebsite\.com/" local_ref=1

doesn't work, neither.

Thanks in advance.

  Réponse avec citation
 
Page generated in 0,05660 seconds with 9 queries