Drupal url alias and views and clear urls for taxonomy issues

不问归期 提交于 2019-12-25 04:42:52

问题


I am using views module. I have created blocks using views and a url using page display. This is for taxonomy. So my views url looks like this "news/science" So if someone click on the link he should be taken to www.example.com/news/science. However i am taken to a unstyled page with broken links. But when i try to use the url www.example.com?q=news/science i am taken to a proper page with correct data. The issue is only with taxonomy related terms.

i.e all urls www.example.com/news/technology , www.example.com/news/sports appear broken and unstyled however if i manually visit www.example.com?q=news/technology and www.example.com?q=news/sports i am taken to a proper page.

Can anyone suggest what could be the reason.

The same issues is with admin login and logout. If i use www.example.com?q=user and try to login i can login. Also if i use www.example.com?q=logout i can logout. But if i use clean url aliases ie. www.example.com/logout then i am taken to access denied page.


回答1:


Do you have the Path module enabled? Thats the module responsible for mapping ?q=logout to /logout.

See here: http://drupal.org/handbook/modules/path




回答2:


Have you changed anything in .htaccess? any mod-rewrite changes that might be skipping over those particular urls?



来源:https://stackoverflow.com/questions/3719456/drupal-url-alias-and-views-and-clear-urls-for-taxonomy-issues

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