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:
do not execute rule if trailing word directory
rewritecond %{request_filename} !-d
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
Post a Comment