Joomla URL:文章本身没有漂亮的URL? [英] Joomla URLs: An article doesn't have a pretty URL by itself?
问题描述
我是Joomla(1.5)的新手,我试图澄清一些有关Joomla处理URL的方式.
I'm new to Joomla (1.5), and I'm trying to clarify something about the way Joomla handles URLs.
我已经激活了他们所谓的搜索引擎友好的网址".但是似乎页面(或文章")只有从菜单中链接到它后,才会获得这样的URL.
I've activated what they call "Search Engine Friendly URLs". But it appears that a page (or an "Article" only gets such a URL once I link to it from a menu.
在我从菜单链接到页面后,是否真的仅将漂亮的(无参数)URL分配给了页面?
Are pretty (parameter-less) URLs really only assigned to pages once I link to them from a menu?
我知道我可以为文章分配别名,但是它们似乎没有任何作用.文章的URL似乎是由链接到该菜单的菜单项的别名定义的.
I know I can assign Aliases to articles, but they don't seem to do anything. An article's URL seems to be defined by the alias of a menu item that links to it.
这是正确的吗?如果是这样,我如何链接到页面而不在菜单中列出它们(例如,从另一页面中).
Is this correct, and if so, how do I link to pages without listing them in a menu (e.g. from within another page).
谢谢
Hannes
推荐答案
更新:确实如此.到底为什么有人会以这种方式设计CMS超出了我的范围,但我的猜测是它具有历史意义(以前只是参数样式的URL,然后在某些时候使用了漂亮的URL).
Update: This really seems to be the case. Why on earth anyone would design a CMS in such a way is beyond me, but my guess is that it's historic (there used to be only parameter-style URLs, and then pretty URLs were slapped on at some point).
对我来说,这通常是个大难题.网页不应包含许多不同的URL.
This would normally be a dealbreaker for me. A page shouldn't have a bunch of different URLs.
但是我找到了解决这个问题的一种方法.这是一个名为sh404SEF的扩展程序( http://extensions.joomla.org/extensions/2380/details).它重写了网站上的所有URL,实际上非常聪明.
But I found one way around this. It's an extension called sh404SEF (http://extensions.joomla.org/extensions/2380/details). It rewrites all URLs on the site and is actually pretty smart about it.
这篇关于Joomla URL:文章本身没有漂亮的URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!