Apche环境运行web yii2框架的配置

来源:互联网 发布:通信网络 相关专业 编辑:程序博客网 时间:2024/06/03 18:41

By 木易哥哥


1.在与index.php文件同级目录(web目录)下添加文件“.htaccess”

IndexIgnore */*
RewriteEngine on

# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# otherwise forward it to index.php
RewriteRule . index.php


2.在工程目录运行命令 C:\Bitnami\wampstack-5.5.31-0\php\php.exe init  初始化


原创粉丝点击