User Tools

Site Tools


docu:csheet:sysadm:srv:apache:redirect_match

Redirect a matching url to another


Redirect an exact url to another no Apache2 using mod_rewrite

# static
RedirectMatch ^/my/static/url/$ /to/another/static/url/
 
# with regex matching
RedirectMatch ^/my/static/([^\/]+)/$ /to/another/static/$1/
docu/csheet/sysadm/srv/apache/redirect_match.txt · Last modified: 2020/07/30 07:55 by admin