【问题标题】:Redirect Everything After the Domain With .htaccess使用 .htaccess 重定向域之后的所有内容
【发布时间】:2013-03-05 17:14:46
【问题描述】:

如何在域后使用相同的 uri 重定向,例如 domain.com/index.php?677775=1domain.net

不知道怎么解释,但我尽力了。

示例:当您转到 http://fb.com/*** 时,它会将您重定向到 http://www.facebook.com/***

【问题讨论】:

标签: apache .htaccess redirect seo


【解决方案1】:

类似的帖子:.htaccess redirect all pages to new domain

其实并不复杂,只需要在域名的htaccess文件中写入即可重定向:

RewriteEngine on
RewriteRule ^(.*)$ http://www.facebook.com/$1 [R=301]

希望能帮到你。

【讨论】:

    猜你喜欢
    • 2018-07-26
    • 1970-01-01
    • 2022-09-30
    • 1970-01-01
    • 2021-05-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-06-10
    相关资源
    最近更新 更多