0
幫助!我試圖設置我的網址http://www.sample.com/blog//press_releases.php被重定向到/,我已經嘗試在SEO中輸入它,讓/blog//press_releases.php到/和它不工作。也試圖把我的.htaccess,但似乎沒有任何使用工作如下如下:使用具有雙正斜槓的URL設置301重定向
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/([^/]+)//+(.*)$
RewriteRule // https://www.sample.com/%1/%2 [R=301,L]
我有這個現有的到我的.htaccess文件:
Redirect 301 /upcoming-events-iaug-converge-2013-and-telematics-detroit /blog/upcoming-events-iaug-converge-2013-and-telematics-detroit/
Redirect 301 /can-you-identify-with-me /blog/can-you-identify-with-me/
Redirect 301 /speech-recognition-success-or-failure-is-not-always-black-or-white /blog/speech-recognition-success-or-failure-is-not-always-black-or-white/
Redirect 301 /transforming-a-contact-center-father /blog/transforming-a-contact-center-father/
Redirect 301 /the-fifth-game-jinx /blog/the-fifth-game-jinx/
謝謝Anubhava,但我試過,仍然沒有重定向。我是否應該將我的URL包含在Rewriterule中? – Cris
我還有其他添加重定向到/ blog /,並且我使用了重定向301 /樣本/樣本去/ blog/sample/sample – Cris
對不起,我的意思是我有其他重定向去/ blog/>>>樣本>>>重定向301 /即將發生的事件 - iaug-converge-2013和遠程信息處理 - 底特律/博客/即將發生的事件 - iaug-converge-2013-and-telematics-detroit/ – Cris