Created apache aliases directory but not working

I created an apache aliases directory to access the directory from the root folder with the same url ...

The problem is that he refuses to work without a trailing slash. As an example, if the site name

  • www.example.com/aa

Error Unable to find server .

However, if I introduce

  • www.example.com/aa/

it works.

Any idea how to fix this problem?

+5
source share
3 answers

Why Wamp Server does not do this automatically, I'm not sure, but at least it's a simple fix.

Wamp Server Apache → Alias ​​ → [alias url] → . "". URL.

Alias /example/ "c:/path/to/example/"

Alias /example "c:/path/to/example/"

.

Wamp Server ( , ). , , .

+8

mod rewrite:

RewriteEngine On
RewriteRule /aa /aa/
+2

www.example.com/aa apache aa. , 404.

www.example.com/aa/ alias, ( AFAIK). , .

AliasMatch:

AliasMatch ^/icons(.*) /usr/local/apache/icons$1
0

All Articles