how can i add a global apache rewrite rule? -


can add global apache rewrite rule, not restrict rule specific directory?

for example add rewrite rule applied both under "/" , /news/

here go:

  1. do not execute rule if trailing word directory

    rewritecond %{request_filename} !-d

  2. do not execute rule if directory (dir1 or dir3 or dir4) found in url

    rewritecond %{request_filename} [^(dir1|dir3|dir4)]

again, can test rewrite rule here: http://martinmelin.se/rewrite-rule-tester/


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -