Reputation: 12073
I have the following line in my httpd.conf file:
AliasMatch ^/myProject/src/foobar/(?:.*)$ /myProject/src/foobar/index.html
What I'd like to happen is for any URL that matches the pattern of http://localhost/myProject/src/foobar/(.*)$
to redirect to the index.html file I have hanging out in at http://localhost/myProject/src/foobar/
. Instead, I get a 404 when I try to access any file inside the foobar
folder. What gives?
Upvotes: 0
Views: 516
Reputation: 732
Syntax: AliasMatch regex file-path|directory-path
examples:
AliasMatch ^/one c:/wamp/www/index.php
[windows]
AliasMatch ^/icons(.*) /usr/local/apache/icons$1
[linux]
Upvotes: 1