1

我想我搞砸了我的 .htaccess

我正在玩弄我的永久链接,现在当我想将它重置回正常的本地主机时。它不像往常一样工作。我不得不写“localhost/index.php”或“127.0.0.1”来打开通常的“localhost”。我该如何解决?

我正在使用它然后一切都开始出错,即使我在“RewriteEngine On”之后输入任何乱码。输入“localhost”不会出现页面错误,除非输入“localhost/index.php”或“127.0.0.1”:

Options -Multiviews
RewriteEngine On
RewriteBase /

RewriteCond %{HTTP_HOST}  !^\.
RewriteRule ^(.*) /$1 [R=301,L]

如果我想将其全部重置为正常(只需键入 localhost,它会自动调出我的 localhost index.php)。我必须将 httpd.conf 文件设置回默认值吗?如果是这样,我在哪里可以获得 apache 2.4.2 的默认 httpd.conf 文件?

4

0 回答 0