(1)将apache中的rewrite服务打开(2)将.htaccess文件copy到网站根目录下(3)后台设置网站生成url规则 (4)清缓存,重启服务器 转载于:https://www.cnblogs.com/sherryZ/p/4790702.html