Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache error "AliasMatch not allowed here"

I get this error if I add this line in the .htaccess file:

AliasMatch ^/image/(.*)$ /ftp/pub/image/$1

And

Alias /image/ /ftp/pub/image/

produces same type of error

Why? :(

like image 640
thelolcat Avatar asked Oct 18 '13 17:10

thelolcat


1 Answers

Well error says all.

As per official Apache docs AliasMatch and Alias are not allowed in .htaccess

You need to put them on Apache config.

like image 177
anubhava Avatar answered Oct 21 '22 08:10

anubhava



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!