This is a discussion on Re: Using modificators with AliasMatch within the Apache Web Server forums, part of the Web Server and Related Forums category; Frank Schaare napisał(a): > It seems to be a good idea to use Aliasmatch. But how do i use ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Frank Schaare napisał(a):
> It seems to be a good idea to use Aliasmatch. But how do i use the -i > modificator (which will tell the regex processor to ignore case) with > AliasMatch ? > > I´ve searched the web for several hours and found nothing about it. It's impossible with AliasMatch, try mod_rewrite whith [NC] flag: http://mail-archives.apache.org/mod_...l.gmail.com%3E See docs: http://httpd.apache.org/docs/2.2/mod...tml#aliasmatch http://httpd.apache.org/docs/2.2/mod...ml#rewriterule -- Pozdrawiam / Best regards Pawel Zdziarski gmail: faxepl |
|
|||
|
Frank Schaare wrote:
> Hi faxe, > > > It's impossible with AliasMatch, try mod_rewrite whith [NC] flag: > > http://mail-archives.apache.org/mod_...l.gmail.com%3E > > > > > > See docs: > > http://httpd.apache.org/docs/2.2/mod...tml#aliasmatch > > http://httpd.apache.org/docs/2.2/mod...ml#rewriterule > impossible is nothing ;-). Meanwhile, i found the solution: > (?i)^/thisdir(.*) matches any variation of 'thisdir' you might also try ^/(?i:thisdir)(.*) if you only want no-case with "thisdir".. Xicheng |
| Thread Tools | |
| Display Modes | |
|
|