Trailing slashes problem

后端 未结 3 1712
滥情空心
滥情空心 2020-12-19 08:09

When I type this \"http://example.com/Hello%20There/\" , it displays the index page wich is : \"http://example.com/Hello%20There/index.html\" .

Well, what I want to

3条回答
  •  萌比男神i
    2020-12-19 08:58

    Don't use trailing slash to define an alias.

    Both URLs http://example.com/myalias1 and http://example.com/myalias1/ would work fine.

    Example:

    sudo vi /etc/apache2/apache2.conf            
    
    Alias /myalias1 "/path/to/folder1"           
    

提交回复
热议问题