Hide index. php on the iis server

Source: Internet
Author: User
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?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.