【问题标题】:how to redirect all links from old domain to same links but in domain?如何将旧域中的所有链接重定向到域中的相同链接?
【发布时间】:2013-10-03 14:29:46
【问题描述】:

如何将旧域中的所有链接重定向到域中的相同链接? 这是我的网站,我如何将所有旧链接重定向(htaccess)到新链接, 例如:

http://stroi-rf.ru/index.php?route=product/category&path=18_110
http://snab-rf.ru/index.php?route=product/category&path=18_110 

我想在我所有的链接中通过 snab-rf.ru 更改 stroi-rf.ru。 谢谢

【问题讨论】:

标签: .htaccess


【解决方案1】:

试试:

Redirect 301 / http://snab-rf.ru

stroi-rf.ru的文档根目录中的htaccess文件中。

【讨论】:

  • 我无法访问 stroi-rf.ru ,
  • 我可以在 snab-rf.ru 中添加代码而不是 stroi-rf.ru 。你能告诉我其他方式吗?
  • @user2841405 如果您无权访问您希望从重定向的网站,那么您无能为力
猜你喜欢
  • 2020-04-30
  • 2014-06-08
  • 2014-05-25
  • 2017-02-10
  • 1970-01-01
  • 2014-10-21
  • 2012-10-04
  • 2013-09-26
  • 1970-01-01
相关资源
最近更新 更多