I want to add a alias for my website. So that website.com/alias will go to a folder outside of the root folder. This folder contains a different website so i want to be able to treat this alias as if it were a subdomain.
AliasMatch ^/subdir1/(.*)$ /var/www/otherfolder/subdir1/$1
I was hoping this would match all calls, so that website.com/subdir1/css/style.css would also be a valid path, but all of these are returning 404 errors.
How can i make the alias match a wildcard so that the entry will cover all subdirectories in the alias folder. I want to be able to do this on the apache level rather than having to do it within the .htaccess file because things are already quite complicated there so i want to bypass it if possible.