【发布时间】:2017-08-18 11:24:28
【问题描述】:
我的网站有这个父 URL
https://www.xyz.de
还有其他 URL 可以访问我的网站,如下所示:
Alternate URL 1: http://xyz.de/index.php
Alternate URL 2: https://www.xyz-zvb.de/index.php
Alternate URL 3: http://www.xyz-zvb.de/index.php
Alternate URL 4: http://xyz-zvb.de/index.php
Alternate URL 5: www.xyz-zvb.de/index.php
但是现在我想每次用户使用备用网站 url 访问网站时将所有这些 URL 重定向到主父站点 URL,它将重定向到父主 URL。
我尝试过如下方式,但在这种情况下,只能重定向一个 URL,我认为这不是一种推荐的方式。
Redirect 301 /contact.php http://example.com/contact-us.php
关于此任务的任何帮助?
【问题讨论】:
标签: php .htaccess url redirect url-redirection