1、开启apache支持.htaccess在Apache的配置文件httpd.conf中,找到<Directory /> Opt足毂忍珩ions FollowSymLinks AllowOverride None把其中的AllowOverride None改为AllowOverride All,然后重启apache。
2、建立.htaccess文件新建txt文件,选择另存为,命名为.htaccess

1、开启apache支持.htaccess在Apache的配置文件httpd.conf中,找到<Directory /> Opt足毂忍珩ions FollowSymLinks AllowOverride None把其中的AllowOverride None改为AllowOverride All,然后重启apache。
2、建立.htaccess文件新建txt文件,选择另存为,命名为.htaccess
