如何使example.com/about显示example.com/about.html? (Apache2的)
尝试使用example.com/about show example.com/about.html,而不必将url更改为/about.html时,最佳select是什么? 现在我正在尝试下面的代码,它只是返回一个404错误。 RewriteRule ^/about$ https://example.com/about.html [R=301,L] 编辑#1 W3DK我目前有多视图启用,但我仍然得到一个404错误。 这是我当前在VirtualHost中的当前设置 <Directory /var/www/public_html> Options All +MultiViews AllowOverride All Order allow,deny allow from all </Directory>