页次: 1
如果index.php 不是在网站的根目录, 那么可以加入 .htaccess 文件
RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] RewriteCond $1 !^(index\.php|images|robots\.txt)
如果在根目录可以使用
RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1 !^(index\.php|images|robots\.txt) RewriteRule ^(.*)$ /index.php/$1 [L]
两者的区别在于 #/#index.php 是否有 /
ipbbs.net
离线
页次: 1