301重定向旧的Joomla SEF URL

时间:2012-11-07 21:19:49

标签: .htaccess redirect joomla seo

我正在努力删除安装了SEF模块的旧Joomla 1.0站点。我需要以搜索引擎友好的方式将URL重定向到静态页面。

典型的网址如下:www.mysite.com/index.php?/this-page.html 我需要将其转发到同一网站上的静态页面,例如:www.mysite.com/this-page.html

所以,我编辑了htaccess来阅读:

redirect 301 /index.php?/this-page.html http://www.mysite.com/this-page.html

重定向似乎不起作用。有任何想法吗?一张外卡重定向去除“/index.php?/”将是一个奖励,因为我必须做大约80.我也很乐意手动执行它们。

3 个答案:

答案 0 :(得分:0)

试试以下内容并告诉我

redirect /index.php?/this-page.html http://www.mysite.com/this-page.html

答案 1 :(得分:0)

添加.htaccess 重定向/路径/到/新/文件夹http://www.yoursite.com/new_page.html

第一个参数应该是文件夹的路径

答案 2 :(得分:0)

RewriteEngine On RewriteCond%{REQUEST_URI} ^ / index.php / RewriteRule ^ index.php /(.*)/ $ 1 [R,L]

这消除了所有旧sef网址中的index.php

相关问题