By chinthana007 on
my company has inherited some drupal sites on drupal version 6. We are trying to setup them on IIS7. We are using Helicon ISAPI_Rewrite 3.1 to rewrite urls. Frontend of the site works well wihout any problems with Re written urls. But when trying to browse /admin. I get 403:Access denied error and I cannot seem to get rid of this no matter what I do. Please advice..?
.htaccess file containes below.
# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.79
RewriteEngine on
# Modify the RewriteBase if you are using Drupal in a subdirectory or in a
# VirtualDocumentRoot and the rewrite rules are not working properly.
# For example if your site is at http://example.com/drupal uncomment and
# modify the following line:
# RewriteBase /drupal
#
# If your site is running in a VirtualDocumentRoot at http://example.com/,
# uncomment the following line:
RewriteBase /
# Rewrite URLs of the form 'x' to the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
web.config containes below
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<clear />
<add value="index.php" />
<add value="Default.htm" />
<add value="Default.asp" />
<add value="index.htm" />
<add value="index.html" />
<add value="iisstart.htm" />
<add value="default.aspx" />
</files>
</defaultDocument>
<directoryBrowse enabled="true" />
</system.webServer>
</configuration>
Comments
Answer to my question
I think I have found my own solution for this problem.. please look at my web.config file settings below
Hi, I just had a similar
Hi,
I just had a similar problem and your fix helped. Thank you for this.
Pete