【发布时间】:2018-08-03 20:52:22
【问题描述】:
我对 htaccess 文件比较陌生,我正在尝试让我的 URL 看起来对 SEO 友好。
它说要将我的 htaccess.txt 更改为 .htaccess 以允许 URL 覆盖,但我有多个 htaccess 文件,不知道要切换哪个以及做什么。
我的目标是: http://www.sunshineorlandorentals.com/component/bookman/?PropertyId=1609
【问题讨论】:
-
要记住的第一件事:在 htaccess 中你重写 from
http://www.sunshineorlandorentals.com/location/1609(浏览器地址栏中的内容)tohttp://www.sunshineorlandorentals.com/component/bookman/?PropertyId=1609(什么php 实际得到) -
您可能在多个文件夹级别中有多个 htaccess 文件。最高的(根)是最重要的。
-
我在根目录中有多个 .htaccess 文件。一个名为 _.htaccess 一个名为 htaccess.txt 一个名为 htaccess2.txt
-
只有完全
.htaccess的那个是活跃的。其他的是备份或smth..