简体   繁体   English

Joomla - 使用LINK URL菜单显示文章

[英]Joomla - Use LINK URL for menu to show Article

i use joomla version 1.5.26 我使用joomla版本1.5.26
Actually my problem is when i use ALIAS in menu event for show the article, i got this message : 其实我的问题是当我在菜单事件中使用ALIAS来显示文章时,我收到了这条消息:

Not Found

The requested URL /my-articles.html was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

so i want to change url address to use LINK article url for my Menu event. 所以我想更改网址,以便为我的菜单事件使用LINK文章网址。 because when manually i open that LINK url in browser to show the article, it's work 因为当我手动打开浏览器中的LINK url来显示文章时,它就可以了
it's possible to change ALIAS become LINK article url in menu configuration? 可以在菜单配置中更改ALIAS成为LINK文章网址吗?
or mybe some one can help me to figure out that's error message when i use ALIAS address.. :) 或mybe当​​我使用ALIAS地址时,有人可以帮我弄清楚这是错误信息.. :)

thanks a lot for your helped,,, 非常感谢你的帮助,,,

OK, it is not clear to me how your configuration is set up, but it should contain: 好的,我不清楚你的配置是如何设置的,但它应该包含:

var $sef = '1';
var $sef_rewrite = '1';
var $sef_suffix = '1';

You also need to activate the .htaccess-file on the server, by renaming it from htaccess.txt to .htaccess (assuming you are on a *nix-server, on windows google the alternative) 您还需要激活服务器上的.htaccess文件,方法是将其从htaccess.txt重命名为.htaccess(假设您在* nix-server上,在windows google上替代)

Now you should be able to reach menu items by their alias as you explained: http://myjoomla.com/articles.html . 现在,您应该能够按照别人的说法访问菜单项: http//myjoomla.com/articles.html Also notice that the url's in the menus should look the same way. 另请注意,菜单中的URL应该看起来相同。

If this fails, there are possible options: - edit the .htaccess-file and set: RewriteBase / - edit configuration.php and set var $live_site = ' http://myjoomla.com '; 如果失败,可能有以下选项: - 编辑.htaccess文件并设置:RewriteBase / - edit configuration.php并设置var $ live_site =' http ://myjoomla.com';

Get back if you still have problems 如果你还有问题,请回来

PS. PS。 Would'nt use too much time mucking about in an old Joomla-version like that, consider opgrading to be able to apply security patches etc. 不会在旧的Joomla版本中使用太多时间,考虑使用安全补丁等方法进行操作。

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

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