Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0 support forum
 Helicon Tech : ISAPI_Rewrite 3.0 support forum
Subject Topic: rewrite problem Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
mangoo
Newbie
Newbie


Joined: 29 August 2008
Online Status: Offline
Posts: 2
Posted: 29 August 2008 at 5:38pm | IP Logged Quote mangoo

hi, we are using rewrite3 on server 2008 and in general it works fine.

but now we encountered a serious problem.
on our page we are using links with french accons.

the special chars are encoded correctly so the link looks like this:

if i call this page(%E9 stands for an e^):

http://www.lejournaletudiant.ca/categories/Test-%252d-Cat%E9gorie-avec-accent/


and print in the php file:
print $_SERVER["HTTP_X_REWRITE_URL"];

it will print
/categories/Test-%252d-Cat%c3%a9gorie-avec-accent/

so %E9 was changed to %c3%a9.

same for other symbols too like a capital E.

does anybody have a clue what changed it?

we have this:
RewriteRule /categories(.*) /categories.php?$1 [I,L]
in the httpd.ini

and our htaccess:


Setenv TIMEOUT 300
Setenv CPULIMIT 100
Options -MultiViews -Indexes +FollowSymlinks


RewriteEngine On
# RewriteBase /websitepublisher/
<IfModule mod_security.c>
    # Turn off mod_security filtering. 
    SecFilterEngine Off

    # The below probably isn't needed, but better safe than sorry.
    SecFilterScanPOST Off
</IfModule>
RewriteCond %{REQUEST_URI} categories.*
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^categories(.*)$ categories.php?$1 [T=application/x-httpd-php,L]


php is version 5, but i am very sure that it has to do with the rewrite filter (isapi is the only filter applied) so if anyone can help us it would be great
Back to Top View mangoo's Profile Search for other posts by mangoo
 
mangoo
Newbie
Newbie


Joined: 29 August 2008
Online Status: Offline
Posts: 2
Posted: 31 August 2008 at 1:51pm | IP Logged Quote mangoo

ok right now i am not sure anymore if the problem is related to isapi.

%c3%a9 stands for the e^   in utf8
so somehow IIS changes my request before its passed to isapi.

i tried to find the setting IN IIS7 so i went to IIS Manager, changed the .NET GLobalization Requests entry from utf8 to iso-8859-1  but it didnt help.

does anybody have an idea what i have to change to let IIS not convert requests to the utf encoding? or how could i get a workaround in php.
i tried utf8_de/encode($_SERVER["HTTP_X_REWRITE_URL"]); but it didnt work.

regards
alex
Back to Top View mangoo's Profile Search for other posts by mangoo
 

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