有没有开URL REWRITE?有的话关掉,看看行不行,行的话就是伪静态写错。
1,我现时用的:
/question/(:any)===/discuss/(:any)/
/topic/(:any)===/topic/(:any)
/people/list/===/members/
/people/(:any)===/member/(:any)
/home/explore/category-(:num)===/category/(:num)/
/home/explore/===/discover/
/account/login/===/login/
/account/logout/===/logout/
/account/setting/(:any)/===/setting/(:any)/
2,官方默认规则:
/home/explore/===/explore/
/home/explore/category-(:num)===/category/(:num)
/people/list/===/users/
/account/login/===/login/
/account/logout/===/logout/
/account/setting/(:any)/===/setting/(:any)/
3,简短规则:
/question/(:any)===/q_(:any).html
/topic/(:any)===/t_(:any).html
/people/(:any)===/p_(:any).html
/home/explore/category-(:num)===/c_(:num).html
/home/explore/===/explore/
/people/list/===/users/
/account/login/===/login/
/account/logout/===/logout/
/account/setting/(:any)/===/setting/(:any)/
你可以随便用,自己改的话不建议了。伪静态一定要配置好。
阅读全文
收起全文