mod_rewrite or mod_alias?

后端 未结 2 797
天命终不由人
天命终不由人 2020-12-09 02:43

I have a server, its httpd.conf already has some \"RedirectMatch permanent\" directives in it.

I\'m not that familiar with mod_alias, I\'ve only ever used m

2条回答
  •  难免孤独
    2020-12-09 03:32

    As the accepted answer says: mod_rewrite can do things which mod_alias can't. However the main benefit of mod_alias is that it is easier to use.

    The apache docs say that we should use mod_alias for simple things like redirects and mod_rewrite only for things we cannot do with simpler modules like mod_alias. View the docs: When not to use mod_rewrite.

提交回复
热议问题