joomla prepends to 'path'

让人想犯罪 __ 提交于 2019-12-12 00:43:30

问题


my wife have a joomla 2.5 site

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

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">

points to something like: 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">

points to http://www.domain.contry/images/some_folder/xxx.JPG

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

Update:

I think the problem something like this:

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?

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

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

回答1:


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.

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



来源:https://stackoverflow.com/questions/18598640/joomla-prepends-to-path

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!