第一步:新建一个文件并命名".htaccess"

第二步:写入一下内容

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


 

第三步:上传到服务器的htdocs目录下即可。

EyouCms去除URL中的index.php-易优问答

Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐