The iis server hides index. php [ISAPI_Rewrite]
RewriteEngine On
RewriteBase/
RewriteCond % {HTTP_HOST} ^ dj313.com/[NC]
RewriteRule ^ (. *) http://www.dj313.com [R = 301, L]
RewriteCond % {REQUEST_FILENAME }! -F
RewriteCond % {REQUEST_FILENAME }! -D
RewriteRule ^ (. *) $/index. php/$1 [L]
Is the index hidden incorrectly? My actual path is www.dj313.com/index.php/huati/i44/. I want to remove index. php from www.dj313.com/huati/i44 /! In this case, why do I always access the homepage?
Reply to discussion (solution)
Why don't you visit www.dj313.com/index.php/huati/i44?
No, it's other modules. didn't you see any differences in output? Index is the homepage, and huati is from other modules.
I installed ISAPI_Rewrite3_0098.msi and tested RewriteRule ^/index \. html $/index. php. this is useless, but the 301 jump takes effect! Which knows the situation?
RewriteBase/cannot indicate the current directory? I used the. htaccess file in the admin folder in the background. when I checked the url, I found that the rewrite was based on the root directory?