【问题标题】:typo3 auto redirect realurl news错字3自动重定向realurl新闻
【发布时间】:2016-08-12 07:44:21
【问题描述】:

我使用 htaccess 中的以下代码重定向新闻:

RewriteCond %{REQUEST_URI} news-detail\.html
RewriteCond %{QUERY_STRING} L=0 [NC]
RewriteCond %{QUERY_STRING} (tx_news_pi1\[news\]=101|tx_news_pi1%5Bnews%5D=101) [NC]
RewriteRule ^.*$ http://example.net/news/news-detail/8/2016/newstitle? [R=301,L]

重定向有效。是否可以在 RewriteRule 中使用来自 QUERY_STRING 的参数?这样每篇新闻文章都会自动重定向到演讲网址。我尝试使用配置文件中的一些参数,但它不起作用。

【问题讨论】:

    标签: redirect typo3 realurl tx-news


    【解决方案1】:

    您不会仅通过 id uid 获得 htacces 中的新闻标题。

    我建议保留原样的 url,使用 realurl 并为 realurl 变体设置一个规范的 url

    【讨论】:

    • 有没有办法使用 htaccess:RewriteRule & TYPO3:QueryBuilder:Redirect 的解决方案强制说出 url?
    猜你喜欢
    • 2015-07-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-07-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多