This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: Magento Conversion (Topic Closed Topic Closed) Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Symsworld
Newbie
Newbie


Joined: 15 August 2008
Location: United Kingdom
Online Status: Offline
Posts: 18
Posted: 20 August 2009 at 3:55pm | IP Logged  

Hi we are trying to convert a Magento Installation to install on a Windows 2008 server running ISAPI Rewrite 3.0 for .htaccess.
After checking, technically Magento should run on the server and it does except we are getting errors back which is due to rewrite rule problems,

The following is the .htaccess file provided by Magento with some minor tweeks, however we need help with the rules, any help with this matter would be much appreciated.

We understand that alot of the stuff in that .htaccess file cannot be processed by ISAPI Rewrite 3 but hopefully with the correct rules we can do the server side variable changes with web.config

This is a link to the error we are receiving.
http://escan.uk.com/escshop/index.php/install/wizard/beginPost/

   Options -MultiViews


## default index file

    DirectoryIndex index.php

<IfModule mod_php5.c>

## adjust memory limit

#    php_value memory_limit 64M
    php_value memory_limit 128M
    php_value max_execution_time 18000

## disable magic quotes for php request vars

    php_flag magic_quotes_gpc off

## disable automatic session start
## before autoload was initialized

    php_flag session.auto_start off

## enable resulting html compression

    #php_flag zlib.output_compression on

# disable user agent verification to not break multiple image upload

    php_flag suhosin.session.cryptua off

# turn off compatibility with PHP4 when dealing with objects

    php_flag zend.ze1_compatibility_mode Off

</IfModule>

<IfModule mod_security.c>

# disable POST processing to not break multiple image upload

    SecFilterEngine Off
    SecFilterScanPOST Off
</IfModule>

<IfModule mod_deflate.c>

</IfModule>

<IfModule mod_ssl.c>

## make HTTPS env vars available for CGI mode

    SSLOptions StdEnvVars

</IfModule>

<IfModule mod_rewrite.c>

## enable rewrites

    Options +FollowSymLinks
    RewriteEngine on

## you can put here your magento root folder
## path relative to web root

    #RewriteBase /magento/

## workaround for HTTP authorization
## in CGI environment

    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

## always send 404 on missing files in these folders

    RewriteCond %{REQUEST_URI} !^/(media|skin|js)/

## never rewrite for existing files, directories and links

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l

## rewrite everything else to index.php

    RewriteRule .* index.php [L]

</IfModule>


## Prevent character encoding issues from server overrides
## If you still have problems, use the second line instead

    AddDefaultCharset Off
    #AddDefaultCharset UTF-8

<IfModule mod_expires.c>

## Add default Expires header
## http://developer.yahoo.com/performance/rules.html#expires

    ExpiresDefault "access plus 1 year"

</IfModule>

## By default allow all access

    Order allow,deny
    Allow from all

## If running in cluster environment, uncomment this
## http://developer.yahoo.com/performance/rules.html#etags

    #FileETag none
Back to Top View Symsworld's Profile Search for other posts by Symsworld
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 21 August 2009 at 5:57am | IP Logged  

I've made some fixes in the config. Please try this:

<IfModule mod_rewrite.c>

## enable rewrites
    RewriteEngine on

## you can put here your magento root folder
## path relative to web root

    #RewriteBase /magento/

## workaround for HTTP authorization
## in CGI environment
#this line won't work in ISAPI_Rewrite as the E flag is not supported
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

## always send 404 on missing files in these folders
#i coudn't see the rule giving 404, so i've written the example
    RewriteCond %{REQUEST_URI} !^/(?:media|skin|js)/
    RewriteRule .? /404.asp [L]

## never rewrite for existing files, directories and links

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l

## rewrite everything else to index.php

    RewriteRule .* index.php [L]

</IfModule>

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 

Sorry, you can NOT post a reply.
This topic is closed.

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You can vote in polls in this forum