Drupal url alias and views and clear urls for taxo

2019-08-18 02:37发布

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.

2条回答
放荡不羁爱自由
2楼-- · 2019-08-18 03:37

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

查看更多
狗以群分
3楼-- · 2019-08-18 03:40

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

查看更多
登录 后发表回答