【发布时间】:2015-05-23 09:23:53
【问题描述】:
我对 Symfony2 和重定向还很陌生,我正在尝试将帖子从文章部分移动到网站的新部分。
另外,我是否只保留原始文章(因为它们已被 Google 的 SEO 索引)在 MySQL 数据库中,并在新部分中创建它们的新版本?
例如,
原位置:
http://example.com/articles
http://example.com/articles/this-is-article-1
新地点:
http://exmaple.com/
http://example.com/this-is-article-1
我在 Symfony2 Cookbook 中遇到过以下内容,但我不确定我会使用哪一个。
http://symfony.com/doc/current/cookbook/routing/redirect_in_config.html
【问题讨论】:
标签: symfony redirect routing http-status-code-301