简体   繁体   English

Joomla URL重定向

[英]Joomla URL redirect

I've got a question here about joomla redirection. 我在这里有一个关于joomla重定向的问题。 . I got a Joomla site that has a bug. 我有一个有错误的Joomla网站。 Each time i visit the site, it redirects to other site. 每次我访问该站点时,它都会重定向到其他站点。 . but when i put www.site.com/index.php , it's ok. 但是当我放www.site.com/index.php ,就可以了。 i already look on the >ndex.html## there's a meta: 我已经在> ndex.html ##上查看了一个meta:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="refresh" content="0;url=http://redirectto.com/">

but if i removed or change the meta, the site got a error. 但是,如果我删除或更改了meta,则该网站出现了错误。 .

anyone can helpe about this problem?? 任何人都可以帮助解决这个问题?

Joomla does not normally use index.html anywhere - though there is such a file in almost every folder, it's supposed to be empty for security reasons. Joomla通常不会在任何地方使用index.html-尽管几乎每个文件夹中都有一个这样的文件,但是出于安全原因,它应该为空。 I can't say for sure if you've installed something that puts this code in an index.html for a reason, but I've never seen anything like that before. 我不能肯定地说您是否安装了将此代码放入index.html的原因,但是我从未见过这样的事情。

Re-reading, it looks like your apache config is defaulting to index.html, when it should be defaulting to index.php. 重新读取后,看起来您的apache配置默认为index.html,而默认值为index.php。 Check your apache config, or put an htaccess file in your joomla folder to do this, or joomla isn't likely to work properly anyways - it needs to default to index.php 检查您的apache配置,或将htaccess文件放在joomla文件夹中以执行此操作,否则joomla仍然无法正常工作-它需要默认为index.php

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

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