joomla倾向于“路径" [英] joomla prepends to 'path'

查看:98
本文介绍了joomla倾向于“路径"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的妻子有一个joomla 2.5网站

my wife have a joomla 2.5 site

她声称除了安装并随后卸载Koowa插件,Ninja插件和Ninjaboard组件外,她什么也没做.

She claims that she has done nothing except, installing and and subsequently uninstalling Koowa plugi, Ninja plugin and Ninjaboard component.

无论如何,joomla的路径"已更改,使得在域名和HTML呈现的路径之间,joomla服务器现在似乎插入了"/index.php"或"/index.php/menu-item-名称"

Anyway after that the joomla 'path' have changed such that between the domain name and the path rendered by HTML, the joomla server now seems to insert "/index.php" or "/index.php/menu-item-name"

例如,单击如下所示的链接:

for example clicking a link like the following:

<a href="images/some_folder/xxx.JPG">

指向类似以下内容: http://www.domain .contry/index.php/fun/images/some_folder/xxx.JPG

我们如何更改全局路径设置",这样

how to we change the 'global path settings' such that

<a href="images/some_folder/xxx.JPG">

指向 http://www.domain.contry/images/some_folder/xxx.JPG

注意:我的joomla和php技能非常基本:)

NB: my joomla and php skills are very basic :)

更新:

我认为问题是这样的:

所有图像路径以前都是绝对"的,现在是相对的,因此,如果我在"index.php/some-menu"中,然后单击"images/xxx.jpg",那么它将解析为"index.php/some-menu/images/xxx.jpg",她将所有图像保存在图像文件夹中,是否可以通过某种方式使所有图像路径绝对"而不是joomla中的相对路径?

all the image paths used to be 'absolute' and are now relative, so if I am in 'index.php/some-menu' and click 'images/xxx.jpg' then it resolves to 'index.php/some-menu/images/xxx.jpg', she has all her images in the image folder, is there some way make all image paths 'absolute' instead of relative in joomla?

因为用萤火虫将'images/xxx.jpg'更改为'/images/xxx.jpg'可解决此问题...

because changing 'images/xxx.jpg' to '/images/xxx.jpg' with firebug fixes the problem...

如果在joomla中不可能...您认为这有多糟糕: 下载sql数据库 并运行类似于

if it is not possible in joomla... how bad do you think it is to: download the sql database and run a regex akin to

s/<.+?=\"(images)\/[\w\s]+?\.[\w\d]+)\".*?>/\/$1/g

推荐答案

在网站"标签下的全局配置中查找SEO设置.确保已启用URL重写,并在必要时按照工具提示中的指示重命名htaccess.txt(Linux服务器)或web.config.txt(Windows服务器).

Look in your global configuration under the Site tab for your SEO settings. Make sure you have URL rewriting enabled, and follow the directions in the tooltip to rename htaccess.txt (Linux servers) or web.config.txt (Windows servers) if necessary.

如果此时您在站点上遇到服务器错误,请尝试取消注释.htaccess中的RewriteBase /.

If you get a server error on the site at this point, try uncommenting RewriteBase / in .htaccess.

这篇关于joomla倾向于“路径"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆