简体   繁体   English

将joomla 1.5重定向到joomla 2.5时出错

[英]Error in redirect joomla 1.5 to joomla 2.5

I have this website: home-bradgardnerconstruction-org which was built on joomla 1.5 without the sef link so the links looks like this 我有这个网站: home-bradgardnerconstruction-org ,它建立在joomla 1.5上,没有sef链接,因此链接看起来像这样

www-bradgardnerconstruction.net/index.php?option=com_content&view=article&id=17:admin&catid=15:testimonials&Itemid=13

I've built a new website which is this 'bradgardnerconstruction-com' on joomla 2.5 in which the links look like this 我在joomla 2.5上建立了一个新的网站“ bradgardnerconstruction-com”,其中的链接如下所示

www.bradgardnerconstruction-com/brad-gardner-construction/brad-gardner-construction-company-profile.html

I am trying to redirect the old website using this code: 我正在尝试使用以下代码重定向旧网站:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^home\.bradgardnerconstruction\.org$ [OR]
RewriteCond %{HTTP_HOST} ^www\.home\.bradgardnerconstruction\.org$
RewriteRule ^(.*)$ "http\:\/\/www\.bradgardnerconstruction\.com\/$1" [R=301,L]

but is giving me a bunch of 500 errors and 404 errors on google webmaster basically what is doing is changing the links from 但是在Google网站站长上给了我500条错误和404错误,基本上是在更改链接,

home.bradgardnerconstruction-org/index.php?option=com_content&view=section&layout=blog&id=16&Itemid=16

to this 对此

http://www.bradgardnerconstruction.com/index.php?option=com_content&view=section&layout=blog&id=16&Itemid=16

and is messing up everything. 并弄乱了一切。

Any advise? 有什么建议吗?

Not sure you are going to be able to change the old URLs to the new, unless there is a strong logic between the old URLs and the new that you could calculate, eg if all the itemids and article ids are exactly the same as before. 不确定您将能够将旧的URL更改为新的URL,除非旧的URL与可以计算的新URL之间存在强大的逻辑,例如,如果所有的itemid和商品ID与以前完全相同。

If not, I think you'd have to write an individual redirect for every page of the old site, or just redirect all pages to the homepage. 如果没有,我认为您必须为旧站点的每个页面编写一个单独的重定向,或者仅将所有页面重定向到首页。

If you have to do individual redirects, you could either write them in the htaccess file or keep that as it is and use the redirect component in the 2.5 version, which would be redirecting a redirect but can be simpler to set up (though not much tbh). 如果必须进行单独的重定向,则可以将它们写在htaccess文件中,也可以保持不变,并使用2.5版本中的重定向组件,该组件将重定向重定向,但设置起来更简单(尽管不多) TBH)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM