【发布时间】:2021-07-22 18:05:55
【问题描述】:
我正在尝试将 /abc.html 重定向到 /abc.php,但是当我这样做时,它给出了一个 额外的 http// 并且页面无法像 那样工作>http//www.example.de/abc.php不知道这个HTTP是从哪里来的。
注意:网站没有ssl所以域名是http://example.de
我的 .htaccess 文件
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.
RewriteRule ^(.*)$ http://example.de/$1 [R=301,L]
RedirectPermanent /tour.html /tour.php
【问题讨论】:
标签: apache .htaccess mod-rewrite url-rewriting friendly-url