0
我與重定向htaccess的的folling代碼的消息:TYPO3自動重定向realurl新聞
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中的參數?這樣每篇新聞文章都會自動重定向到發言網址。我試圖從配置文件中使用一些參數,但它不起作用。