我使用的是Joomla 3.4,之前configuration.php文件中的live_site属性被设置为空。
我将网站网址从http://example.com改为http://example.com/subdirectory,当我插入上传的图片时,在用户网站中,图片是从http://example.com/images而不是http://example.com/subdirectory/images加载的,这就是为什么它们不显示的原因。
我按照互联网上的一些说明,发现如果我设置了$live_site = "http://example.com/subdirectory",这个问题就可以解决。
但是,在设置$live_site后,当我上传图像时,页面(管理员中的媒体管理器)未停止加载,并且在浏览器的状态栏中,我看到有Uploading (20%)或Uploading (8%)消息。我没有改变目录权限,对于images,tmp目录,它们仍然是777。
请帮我解决这个问题。
发布于 2016-05-30 17:19:34
您可以通过在.htaccess文件中设置Rewritebase /subdirectory来解决这个问题,而不是在configuration.php中设置live_site。
应该没有必要将权限设置为777,从安全角度来看,也不建议这样做。
https://stackoverflow.com/questions/37517945
复制相似问题