Why can't I set server level rewrite rule?
3 posts
• Page 1 of 1
- wangxr1985
-
- Posts: 2
- Joined: 24 Apr 2013, 04:04
Why can't I set server level rewrite rule?
I have installed rewrite3.1.0.73 on IIS6 (win2003 server).
I can write my rules to .htaccess file to let a single website take effect.
But when I copy the same rules to the global configuration file(httpd.conf) to apply to all my websites,that will take no effects.
There is "everyone" account permission on httpd.conf and ISAPI_Rewrite.dll.I don't think the permission is the reason of the problem.
Does any one know which reason may cause this problem?
I can write my rules to .htaccess file to let a single website take effect.
But when I copy the same rules to the global configuration file(httpd.conf) to apply to all my websites,that will take no effects.
There is "everyone" account permission on httpd.conf and ISAPI_Rewrite.dll.I don't think the permission is the reason of the problem.
Does any one know which reason may cause this problem?
Re: Why can't I set server level rewrite rule?
Hello,
Can you please show the config that you put in httpd.conf.
Can you please show the config that you put in httpd.conf.
- wangxr1985
-
- Posts: 2
- Joined: 24 Apr 2013, 04:04
Re: Why can't I set server level rewrite rule?
I know the reason:
If I want to rewrite index.html to index.php,
in .htaccess file I must write like this:
^index\.html$ index\.php
while in httpd.conf file I must write like this:
^/index\.html$ index\.php
a slash difference between them
If I want to rewrite index.html to index.php,
in .htaccess file I must write like this:
^index\.html$ index\.php
while in httpd.conf file I must write like this:
^/index\.html$ index\.php
a slash difference between them
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 16 guests