2016-12-02 46 views
0

我在Google中搜索测试目的时发现了Joomla 3.6.4网站中的一个错误。 比如我有一个ID 34和别名myalias 现在没想到的是下面的网址加载我的内容的内容:为什么Joomla显示任何网址的内容?

http://example.com/test-test-test/34-myalias 
http://example.com/mytest/34-myalias 
http://example.com/hellowwwwwwwwwwwww/34-myalias 
http://example.com/aything/34-myalias 

等。 这根本不是真的!内容必须在我的预定义菜单项中加载。例如,我在菜单管理器中分配了一个新菜单项,如definedmenu女巫显示内容34。所以下面的URL应该只适用于:

http://example.com/definedmenu/34-myalias 

什么问题。这是我的网站SEO不好... 谢谢。

回答

0

http://example.com/index.php?option=com_content&view=article&id=34&name=ram&age=30 这里

http://example.com/index.php is a base url 

option=com_content&view=article&id=34&name=ram&age=30 

这些输入变量

当我们改变的URL网址SEO

http://example.com/index.php/content/article/34/ram/30 

所以

http://example.com/test-test-test/34-myalias 
http://example.com/mytest/34-myalias 
http://example.com/hellowwwwwwwwwwwww/34-myalias 
http://example.com/aything/34-myalias 

“试验试验试验”治疗作为输入变量 “mytest的”当作输入变量

但每个部件具有在部件路线一些限制,在内容“ID-别名”格式所以 “34 myalias”,但这里的ID是很重要的

http://example.com/test-test-test/34-myaliasdfdfdfd it will work 

http://example.com/test-test-test/34-sdsdsdmyalias it will work 

http://example.com/test-test-test/sdsd34-myalias it will not work 
+0

这个我知道。但是,解决方案是什么?! – James

相关问题