原來的地址http://xxxxxxx/index.php/admin/login/index.html
修改完的路徑http://xxxxxxx/admin/login/index.html
修改.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>
添加nginx配置,如果使用的寶塔linux,直接在網址->單個網站設置->配置文件中合適的地方加上下面的代碼即可
location / { if (!-e $request_filename){ rewrite ^/(.*)$ /index.php?s=/$1 last; } }