1.配置apache的配置,,httpd.conf

#LoadModule rewrite_module modules/mod_rewrite.so      //讲前面的#去掉

2.将AllowOverride None改为All


3.在项目配置文件中面配置

'URL_MODEL' => '2'

4.在站点根文件夹以下创建.htaccess文件,,内容例如以下

 <IfModule mod_rewrite.c>
                       RewriteEngine on
                       RewriteCond %{REQUEST_FILENAME} !-d
                       RewriteCond %{REQUEST_FILENAME} !-f
                       RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
               </IfModule>



相关文章:

  • 2021-07-10
  • 2022-12-23
  • 2022-12-23
  • 2021-10-24
  • 2022-12-23
  • 2021-08-10
  • 2021-08-18
  • 2022-12-23
猜你喜欢
  • 2021-11-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
相关资源
相似解决方案