YuLong Posted November 1 Share Posted November 1 I used the recommended PHP 8.1 and MySQL 3.7, but when I got to the last step of the installation, I clicked on redirect to /admin and it said 404, I didn't find the name admin in the website directory I used the recommended PHP 8.1 and MySQL 3.7. But when I got to the last step of the install, I clicked on redirect to the /admin interface and it showed 404 and I couldn't find anything in the website directory for admin directory Quote Link to comment Share on other sites More sharing options...
MeTooIDK Posted November 1 Share Posted November 1 Just now, YuLong said: I used the recommended PHP 8.1 and MySQL 3.7, but when I got to the last step of the installation, I clicked on redirect to /admin and it said 404, I didn't find the name admin in the website directory I used the recommended PHP 8.1 and MySQL 3.7. But when I got to the last step of the install, I clicked on redirect to the /admin interface and it showed 404 and I couldn't find anything in the website directory for admin directory 你安装在哪个目录? 普遍是: <网域>/<Xera位置>/admin Quote Link to comment Share on other sites More sharing options...
YuLong Posted November 1 Author Share Posted November 1 (edited) 我安装在了网址根目录。我遇到的问题是,安装界面,输入数据库账号密码安装成功后,点击重定向,他会自动重定向到/admin/regeister,但是这个目录是404 Not Found,同时在宝塔看网站目录也是没有admin这个文件夹。 Edited November 1 by YuLong Update Quote Link to comment Share on other sites More sharing options...
YuLong Posted November 2 Author Share Posted November 2 用了 Nginx 的原因 Quote Link to comment Share on other sites More sharing options...
MeTooIDK Posted November 4 Share Posted November 4 On 11/2/2024 at 11:14 AM, YuLong said: 用了 Nginx 的原因 location / { if (!-e $request_filename){ rewrite ^(.*)$ /index.php break; } if (!-e $request_filename){ rewrite .*$ /index.php?/$1 break; } } 试试看这个nginx.conf Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.