伪静态规则没有,帮助网页打不开自己转换的伪静态不能安装程序
bcymw 发表于 2021-3-26
httpd.conf
mod_rewrite.so
AllowOverride None
None
All
.htaccess
<IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]</IfModule>
如果你的服务器环境支持ISAPI_Rewrite的话,可以配置httpd.ini文件,添加下面的内容:
ISAPI_Rewrite
httpd.ini
RewriteRule (.*)$ /index\.php\?s=$1 [I]
在IIS的高版本下面可以配置web.Config,在中间添加rewrite节点:
web.Config
rewrite
<rewrite> <rules> <rule name="OrgPage" stopProcessing="true"> <match url="^(.*)$" /> <conditions logicalGrouping="MatchAll"> <add input="{HTTP_HOST}" pattern="^(.*)$" /> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> </conditions> <action type="Rewrite" url="index.php/{R:1}" /> </rule> </rules> </rewrite>
在Nginx低版本中,是不支持PATHINFO的,但是可以通过在Nginx.conf中配置转发规则实现:
Nginx.conf
location / { // …..省略部分代码 if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=/$1 last; }}
进入宝塔面板-网站-选择要设置的网站-设置选择伪静态-直接选择 thinkphp-保存
加载数据中...
epryijwq1230 发表于 2021-3-27
可能是我太菜了。我选择了也不能安装,
已经查找了很多解决方案,但是没有一个行的通,郁闷至极
bcymw 发表于 2021-3-27
epryijwq1230
2021-3-27
你选的什么环境啊
PHP >= 5.6.0PDO PHP ExtensionMBstring PHP Extension
addonsapplicationconfigextendpublicruntimetemplateuploads
以上目录均需要777写入权限
问题已经解决
谢谢
bcymw
发表于 2021-3-26
[ Apache ]
httpd.conf
配置文件中加载了mod_rewrite.so
模块AllowOverride None
将None
改为All
.htaccess
文件放到应用入口文件的同级目录下[ IIS ]
如果你的服务器环境支持
ISAPI_Rewrite
的话,可以配置httpd.ini
文件,添加下面的内容:在IIS的高版本下面可以配置
web.Config
,在中间添加rewrite
节点:[ Nginx ]
在Nginx低版本中,是不支持PATHINFO的,但是可以通过在
Nginx.conf
中配置转发规则实现:宝塔面板[Nginx]设置网站伪静态
进入宝塔面板-网站-选择要设置的网站-设置
选择伪静态-直接选择 thinkphp-保存
评论列表
加载数据中...
epryijwq1230
发表于 2021-3-27
可能是我太菜了。我选择了也不能安装,
控制器不存在:app\install\controller\Pc
ThinkPHP V5.1.33 LTS { 十年磨一剑-为API开发设计的高性能框架 }已经查找了很多解决方案,但是没有一个行的通,郁闷至极
评论列表
加载数据中...
bcymw
发表于 2021-3-27
epryijwq1230
2021-3-27
可能是我太菜了。我选择了也不能安装,
控制器不存在:app\install\controller\Pc
ThinkPHP V5.1.33 LTS { 十年磨一剑-为API开发设计的高性能框架 }已经查找了很多解决方案,但是没有一个行的通,郁闷至极
你选的什么环境啊
狂雨小说cms的环境要求如下
目录权限
以上目录均需要777写入权限
评论列表
加载数据中...
bcymw
发表于 2021-3-27
PHP扩展 fileinfo
安装了吗
评论列表
加载数据中...
epryijwq1230
发表于 2021-3-27
问题已经解决
谢谢
评论列表
加载数据中...