This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Helicon Ape
 Helicon Tech : Helicon Ape
Subject Topic: Rewrite on Win2008 IIS7.5 Typo3 Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
marlboroman
Newbie
Newbie


Joined: 06 May 2011
Location: Switzerland
Online Status: Offline
Posts: 6
Posted: 06 May 2011 at 7:27am | IP Logged Quote marlboroman

Hi,

I have a very strange behaviour. On my old Win2003 server www.club-60plus-herisau.ch ihave typo3 and isapi_rewrite 3. It works perfect. Now i'm moving to a new 2008 IIS7 Server with Helicon APE.

At the moment i'm using the url www.timeguardian.ch for that moved page. When i hit to a link for example http://www.timeguardian.ch/topnavi/kontakt.html i will be always redirected to the root-page.

Error log.
[06.05.2011 14:21:15] [mod_core_context] (8) [/typo3/ajax.php] ConfigFactory.LoadHtaccess: d:\web\www.club-60plus-herisau.ch\htdocs\.htaccess

Rewrite Log:
213.193.105.98 213.193.105.98  [06.Mai.2011:14:05:15] [www.timeguardian.ch/sid#3][rid#57463798/initial] (1) [perdir d:\web\www.club-60plus-herisau.ch\htdocs\] init rewrite engine with /typo3/ajax.php
213.193.105.98 213.193.105.98  [06.Mai.2011:14:05:15] [www.timeguardian.ch/sid#3][rid#57463798/initial] (5) [perdir d:\web\www.club-60plus-herisau.ch\htdocs\] strip matching prefix: /typo3/ajax.php -> typo3/ajax.php
213.193.105.98 213.193.105.98  [06.Mai.2011:14:05:15] [www.timeguardian.ch/sid#3][rid#57463798/initial] (3) [perdir d:\web\www.club-60plus-herisau.ch\htdocs\] applying pattern ^(typo3|t3lib|tslib|fileadmin|typo3conf|typo3temp|uploads|showpic\.php)/ to uri typo3/ajax.php
213.193.105.98 213.193.105.98  [06.Mai.2011:14:05:15] [www.timeguardian.ch/sid#3][rid#57463798/initial] (5) [perdir d:\web\www.club-60plus-herisau.ch\htdocs\] add per-dir prefix: typo3/ajax.php -> /typo3/ajax.php

213.193.105.98 213.193.105.98  [06.Mai.2011:14:05:17] [www.timeguardian.ch/sid#3][rid#2559773/initial] (1) [perdir d:\web\www.club-60plus-herisau.ch\htdocs\] init rewrite engine with /topnavi/kontakt.html
213.193.105.98 213.193.105.98  [06.Mai.2011:14:05:17] [www.timeguardian.ch/sid#3][rid#2559773/initial] (5) [perdir d:\web\www.club-60plus-herisau.ch\htdocs\] strip matching prefix: /topnavi/kontakt.html -> topnavi/kontakt.html
213.193.105.98 213.193.105.98  [06.Mai.2011:14:05:17] [www.timeguardian.ch/sid#3][rid#2559773/initial] (3) [perdir d:\web\www.club-60plus-herisau.ch\htdocs\] applying pattern ^(typo3|t3lib|tslib|fileadmin|typo3conf|typo3temp|uploads|showpic\.php)/ to uri topnavi/kontakt.html
213.193.105.98 213.193.105.98  [06.Mai.2011:14:05:17] [www.timeguardian.ch/sid#3][rid#2559773/initial] (5) [perdir d:\web\www.club-60plus-herisau.ch\htdocs\] strip matching prefix: /topnavi/kontakt.html -> topnavi/kontakt.html
213.193.105.98 213.193.105.98  [06.Mai.2011:14:05:17] [www.timeguardian.ch/sid#3][rid#2559773/initial] (3) [perdir d:\web\www.club-60plus-herisau.ch\htdocs\] applying pattern ^typo3/.*$ to uri topnavi/kontakt.html
213.193.105.98 213.193.105.98  [06.Mai.2011:14:05:17] [www.timeguardian.ch/sid#3][rid#2559773/initial] (5) [perdir d:\web\www.club-60plus-herisau.ch\htdocs\] strip matching prefix: /topnavi/kontakt.html -> topnavi/kontakt.html
213.193.105.98 213.193.105.98  [06.Mai.2011:14:05:17] [www.timeguardian.ch/sid#3][rid#2559773/initial] (3) [perdir d:\web\www.club-60plus-herisau.ch\htdocs\] applying pattern (.*\.html)\??(.*) to uri topnavi/kontakt.html
213.193.105.98 213.193.105.98  [06.Mai.2011:14:05:17] [www.timeguardian.ch/sid#3][rid#2559773/initial] (4) [perdir d:\web\www.club-60plus-herisau.ch\htdocs\] RewriteCond: input='D:\Web\www.club-60plus-herisau.ch\htdocs\topnavi\kontakt.html' pattern='-f' => matched
213.193.105.98 213.193.105.98  [06.Mai.2011:14:05:17] [www.timeguardian.ch/sid#3][rid#2559773/initial] (4) [perdir d:\web\www.club-60plus-herisau.ch\htdocs\] RewriteCond: input='D:\Web\www.club-60plus-herisau.ch\htdocs\topnavi\kontakt.html' pattern='-d' => matched
213.193.105.98 213.193.105.98  [06.Mai.2011:14:05:17] [www.timeguardian.ch/sid#3][rid#2559773/initial] (4) [perdir d:\web\www.club-60plus-herisau.ch\htdocs\] RewriteCond: input='D:\Web\www.club-60plus-herisau.ch\htdocs\topnavi\kontakt.html' pattern='-l' => matched
213.193.105.98 213.193.105.98  [06.Mai.2011:14:05:17] [www.timeguardian.ch/sid#3][rid#2559773/initial] (1) [perdir d:\web\www.club-60plus-herisau.ch\htdocs\] Rewrite URL to >> /index.php [REWRITE]
213.193.105.98 213.193.105.98  [06.Mai.2011:14:05:17] [www.timeguardian.ch/sid#3][rid#2559773/initial] (1) [perdir d:\web\www.club-60plus-herisau.ch\htdocs\] Rewrite URL /topnavi/kontakt.html to >> /index.php [INTERNAL_REDIRECT]
213.193.105.98 213.193.105.98  [06.Mai.2011:14:05:17] [www.timeguardian.ch/sid#3][rid#17363659/initial/1] (5) [perdir d:\web\www.club-60plus-herisau.ch\htdocs\] strip matching prefix: /index.php -> index.php
213.193.105.98 213.193.105.98  [06.Mai.2011:14:05:17] [www.timeguardian.ch/sid#3][rid#17363659/initial/1] (3) [perdir d:\web\www.club-60plus-herisau.ch\htdocs\] applying pattern ^(typo3|t3lib|tslib|fileadmin|typo3conf|typo3temp|uploads|showpic\.php)/ to uri index.php
213.193.105.98 213.193.105.98  [06.Mai.2011:14:05:17] [www.timeguardian.ch/sid#3][rid#17363659/initial/1] (5) [perdir d:\web\www.club-60plus-herisau.ch\htdocs\] strip matching prefix: /index.php -> index.php
213.193.105.98 213.193.105.98  [06.Mai.2011:14:05:17] [www.timeguardian.ch/sid#3][rid#17363659/initial/1] (3) [perdir d:\web\www.club-60plus-herisau.ch\htdocs\] applying pattern ^typo3/.*$ to uri index.php
213.193.105.98 213.193.105.98  [06.Mai.2011:14:05:17] [www.timeguardian.ch/sid#3][rid#17363659/initial/1] (5) [perdir d:\web\www.club-60plus-herisau.ch\htdocs\] strip matching prefix: /index.php -> index.php
213.193.105.98 213.193.105.98  [06.Mai.2011:14:05:17] [www.timeguardian.ch/sid#3][rid#17363659/initial/1] (3) [perdir d:\web\www.club-60plus-herisau.ch\htdocs\] applying pattern (.*\.html)\??(.*) to uri index.php

IIS App-pool with fast cgi, php 5.2.17
Framework 2.0 integrated

Rewrite COnfig:

# Helicon Ape version 3.0.0.65

RewriteEngine On

RewriteBase /

RewriteRule ^(typo3|t3lib|tslib|fileadmin|typo3conf|typo3temp|uploads|showpic\.php)/ - [L]

RewriteRule ^typo3/.*$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule (.*\.html)\??(.*) /index.php [L]

Whats wrong? Could you please help me?

Back to Top View marlboroman's Profile Search for other posts by marlboroman Visit marlboroman's Homepage
 
Vyacheslav
Admin Group
Admin Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Offline
Posts: 1542
Posted: 10 May 2011 at 2:47am | IP Logged Quote Vyacheslav

Hello.
Please try to add the following code:
Code:
SetEnvIf %{HTTP_X_REWRITE_URL} (.+) REQUEST_URI=$1


Thank you.

__________________
Slavik Shynkarenko,
Helicon Tech.
Back to Top View Vyacheslav's Profile Search for other posts by Vyacheslav Visit Vyacheslav's Homepage
 
marlboroman
Newbie
Newbie


Joined: 06 May 2011
Location: Switzerland
Online Status: Offline
Posts: 6
Posted: 10 May 2011 at 2:55am | IP Logged Quote marlboroman

I tried it, but it did not solve the problem.
Back to Top View marlboroman's Profile Search for other posts by marlboroman Visit marlboroman's Homepage
 
Vyacheslav
Admin Group
Admin Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Offline
Posts: 1542
Posted: 10 May 2011 at 3:04am | IP Logged Quote Vyacheslav

Please try this code:
Code:
RewriteEngine On

RewriteBase /

RewriteRule ^(typo3|t3lib|tslib|fileadmin|typo3conf|typo3temp|uploads|showpic\.php)/ - [NC, L]
RewriteRule ^typo3/.*$ - [NC, L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*\.html)$ /index.php [L,NC,NS]


__________________
Slavik Shynkarenko,
Helicon Tech.
Back to Top View Vyacheslav's Profile Search for other posts by Vyacheslav Visit Vyacheslav's Homepage
 
marlboroman
Newbie
Newbie


Joined: 06 May 2011
Location: Switzerland
Online Status: Offline
Posts: 6
Posted: 10 May 2011 at 7:55am | IP Logged Quote marlboroman

I tried it, but it doesn't work. The same problem as before
Back to Top View marlboroman's Profile Search for other posts by marlboroman Visit marlboroman's Homepage
 
marlboroman
Newbie
Newbie


Joined: 06 May 2011
Location: Switzerland
Online Status: Offline
Posts: 6
Posted: 11 May 2011 at 12:23am | IP Logged Quote marlboroman

Hello,

Dou you have another idea, what i should change? I really need to get this item solved.

Thank you

Back to Top View marlboroman's Profile Search for other posts by marlboroman Visit marlboroman's Homepage
 
Vyacheslav
Admin Group
Admin Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Offline
Posts: 1542
Posted: 11 May 2011 at 5:45am | IP Logged Quote Vyacheslav

Hello.
Does /topnavi/kontakt.html actually exist? If it doesn’t, rules act normally.
rewrite.log shows that /topnavi/kontakt.html doesn’t exist. Make sure NTFS permissions for website’s folder are correct. Application pool user must have enough rights to read all files in the folder.

If by redirection you mean that the address bar changes but you keep seeing the main page, try to put the following code at the top of index.php (but below <?php of course):
Code:
if (isset($_SERVER['HTTP_X_REWRITE_URL']))
{
$_SERVER['REQUEST_URI'] = $_SERVER['HTTP_X_REWRITE_URL'];
}




__________________
Slavik Shynkarenko,
Helicon Tech.
Back to Top View Vyacheslav's Profile Search for other posts by Vyacheslav Visit Vyacheslav's Homepage
 
marlboroman
Newbie
Newbie


Joined: 06 May 2011
Location: Switzerland
Online Status: Offline
Posts: 6
Posted: 12 May 2011 at 10:56am | IP Logged Quote marlboroman

Sorry, but that does not work at all!

The /topnavi/kontakt.html  does not exist it should be rewritten to http://www.timeguardian.ch/index.php?id=3

The appool user has full access to the webfolder and also to the APE install Folder and to the php folder.

What else could it be?

 

Back to Top View marlboroman's Profile Search for other posts by marlboroman Visit marlboroman's Homepage
 
marlboroman
Newbie
Newbie


Joined: 06 May 2011
Location: Switzerland
Online Status: Offline
Posts: 6
Posted: 13 May 2011 at 6:44am | IP Logged Quote marlboroman

I could solve the Problem.

Rewrite Rule:

# Helicon Ape version 3.0.0.65

Include smart_gzip_compression.conf
mod_gzip_on yes
RewriteEngine On
RewriteBase /
RewriteRule ^(typo3|t3lib|tslib|fileadmin|typo3conf|typo3temp|uploads|showpic\.php)/ - [L]
RewriteRule ^typo3/.*$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule (.*\.html)\??(.*) /index.php [L]

The 'HTTP_X_REWRITE' was empty !! The POst from Posted: 11 May 2011 at 5:45am was right, but i did a mistake. I had to put it in the httpd.conf and then it worked.

It workes fine. Many Thanks and Kind REgards Daniel.

 

 

Back to Top View marlboroman's Profile Search for other posts by marlboroman Visit marlboroman's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  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