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