2012-06-02 83 views
2

我有配置了Liferay 6.1的门户http://fut5.co。但是,从Web浏览器查看时出现问题。我第一次访问该网站一切正常,但是当我尝试再次访问,将出现一条消息:带有“此网页有重定向循环”的Liferay门户

“此网页有重定向循环”

要重现这个问题,每次我都清除浏览器的缓存。当我回到我的网站时,这会影响我的访问者。

首播时间:fut5.co - > fut5.co/home 二时间:fut5.co - >重定向循环

我配置了友好的URL为:/门户 公共网页:fut5.co 私人pages:fut5

我该如何解决这个问题?你对此有何看法?

+0

您指的是哪个浏览器? – volody

+0

我发现Chrome-19,FF-12和IE-9发生这种情况。 –

+0

是的,这发生在Chrome 19,Firefox 10,Opera 11.64,Explorer 9和Safare 5.1.7 – AngocA

回答

0

我已经看到这种情况发生时,您将网站的友好URL从“guest”更改为其他内容。解决此问题的一种方法是,如果您重命名为“something”,则请转至http://localhost:8080/web/something而不是​​- 然后重定向循环不会发生。这可能是一个问题(编辑:LPS-27051,在6.1 GA2中修复)。最快的解决方法是不重命名默认站点。

+0

我把它放回来,重定向循环消失。 – AngocA

0

请问您可以在portal-ext.properties中检查此属性吗?现在,当你点击直接url时,它默认为/ web/guest,因此它正在重定向。

# 
# Specify the site name that will default to the company's virtual host. 
# If the specified site has a virtual host, then that will take precedence. 
# If it does not, then it will use the company's virtual host. This property 
# is useful to remove "/web/guest" (or any other site) from the default URL. 
# For example, if this property is not set, then the default URL may be 
# http://localhost:8080/web/guest/home. If this property is set, then the 
# default URL may be http://localhost:8080/home. 
# 
virtual.hosts.default.site.name=Guest 
1

我定期遇到这个问题,Liferay的被破坏。我发现唯一的解决方案是完全重新安装Liferay实例。我希望这种情况在我的应用程序进入生产环境后不会发生。

0

尝试将“控制面板>门户网站设置>导航”中的“主页URL”属性设置为“/”。