Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: Install on w2003 Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
phil22
Newbie
Newbie


Joined: 19 July 2010
Location: France
Online Status: Offline
Posts: 8
Posted: 19 July 2010 at 9:39am | IP Logged Quote phil22

Hello

2003 Server SP2 / IIs6

1/

Before , I have URL Replacer, i desinstall it

I installed ISAPI_Rewrite3 ISAPI_Rewrite3_0075.msi

On IIS / ISAPI filter, I don't have the green arrow

My php4 is OK green arrow. Restart IIs. same Problem

write on httpd.conf

RewriteEngine on
RewriteBase /

Same problem, any Idea ?

2/

what i would like to do with ISAPIRewriting:

If the client write http://www.mysite.fr/buy/

--> the real url is : http://www.mysite.fr/index.php?scr=90021

thanks to help me

regards

 

 

Back to Top View phil22's Profile Search for other posts by phil22
 
AndrushkaUS
Admin Group
Admin Group


Joined: 13 November 2009
Location: United States
Online Status: Offline
Posts: 3159
Posted: 20 July 2010 at 3:13am | IP Logged Quote AndrushkaUS

Hello,

1) Please, check if ASP.NET is allowed in extensions. Also, check the permissions for ISAPI_Rewrite folder.

2) Please, try the following
Code:
RewriteEngine on
RewriteBase /

RewriteRule ^/buy$ index.php?scr=90021 [NC,L]

RewriteCond %{QUERY_STRING} ^scr=90021$
RewriteRule ^index\.php$ buy [NC,R=301,L]


Regards
Andrew

__________________
The will to conquer is the first condition of VICTORY
Back to Top View AndrushkaUS's Profile Search for other posts by AndrushkaUS
 
phil22
Newbie
Newbie


Joined: 19 July 2010
Location: France
Online Status: Offline
Posts: 8
Posted: 22 July 2010 at 9:30am | IP Logged Quote phil22

Hello

thanks for your answers

for point 1/

I set ASP.NET is allowed in extensions

I have also to configure ISAPI filters with the ASP.net ?
 
regards
 
 

 



Edited by phil22 - 22 July 2010 at 9:31am
Back to Top View phil22's Profile Search for other posts by phil22
 
AndrushkaUS
Admin Group
Admin Group


Joined: 13 November 2009
Location: United States
Online Status: Offline
Posts: 3159
Posted: 23 July 2010 at 4:20am | IP Logged Quote AndrushkaUS

Does it show red arrow or does it show nothing at all?
What do the logs say?

Regards
Andrew

__________________
The will to conquer is the first condition of VICTORY
Back to Top View AndrushkaUS's Profile Search for other posts by AndrushkaUS
 
phil22
Newbie
Newbie


Joined: 19 July 2010
Location: France
Online Status: Offline
Posts: 8
Posted: 23 July 2010 at 6:22am | IP Logged Quote phil22

nothing, no arrow  in status column

which log file ? On IIs i have no file today.

Back to Top View phil22's Profile Search for other posts by phil22
 
phil22
Newbie
Newbie


Joined: 19 July 2010
Location: France
Online Status: Offline
Posts: 8
Posted: 23 July 2010 at 9:45am | IP Logged Quote phil22

hello

Now all is green

!!!!!  no explication.....

I test Rewrite, i have the error.log

Point 2/

i have also:

.php/ --> .php?
canecobt/  --> index.php?scr=21/

thank you for your attention

nota:In documentation , the link Boost.Regex documentation is out

http://www.boost.org/libs/regex/doc/syntax_perl.html

 



Edited by phil22 - 23 July 2010 at 11:07am
Back to Top View phil22's Profile Search for other posts by phil22
 
AndrushkaUS
Admin Group
Admin Group


Joined: 13 November 2009
Location: United States
Online Status: Offline
Posts: 3159
Posted: 26 July 2010 at 3:35am | IP Logged Quote AndrushkaUS

Hello,

probably you needed to restart your server to make everything work.

2)
Code:
RewriteRule ^/canecobt$ index.php?scr=21 [NC,L]

RewriteCond %{QUERY_STRING} ^scr=21$
RewriteRule ^index\.php$ canecobt [NC,R=301,L]


But I didn't quite get the idea:

Code:
.php/ --> .php?


Regards
Andrew

__________________
The will to conquer is the first condition of VICTORY
Back to Top View AndrushkaUS's Profile Search for other posts by AndrushkaUS
 
phil22
Newbie
Newbie


Joined: 19 July 2010
Location: France
Online Status: Offline
Posts: 8
Posted: 26 July 2010 at 4:07am | IP Logged Quote phil22

thanks

My old URLReplacer have this configuration :

[Main]
First=0
Replaces=.asp/,.php/,link1/,link2/,link3/,link4/

EnableURLReplace=1
EnableQSReplace=1
Amp=/
Eq==
LogFileDirectory=
EnableLogging=0
[Replaces]
.asp/=.asp?
.php/=.php?
link1/=index.php?scr=21/
link2/=index.php?scr=22/
link3/=index.php?scr=23/

etc.....  (  > 50 link )

On my site , i have this links:

http://www.mysite.fr/link1/

http://www.mysite.fr/link2/

but also

http://www.mysite.fr/index.php/scr=87

--> rewritte in http://www.mysite.fr/index.php?scr=87

 

thank you for your attention

 

 

 

 

 

 

Back to Top View phil22's Profile Search for other posts by phil22
 
AndrushkaUS
Admin Group
Admin Group


Joined: 13 November 2009
Location: United States
Online Status: Offline
Posts: 3159
Posted: 26 July 2010 at 4:26am | IP Logged Quote AndrushkaUS

Lets try to rewrite:
http://www.mysite.fr/index.php/scr=87 --> http://www.mysite.fr/index.php?scr=87

RewriteRule ^index.php/(.*)$ index.php?$1 [NC,L]

Regards
Andrew

__________________
The will to conquer is the first condition of VICTORY
Back to Top View AndrushkaUS's Profile Search for other posts by AndrushkaUS
 
phil22
Newbie
Newbie


Joined: 19 July 2010
Location: France
Online Status: Offline
Posts: 8
Posted: 27 July 2010 at 4:27am | IP Logged Quote phil22

Hello

thanks

All is ok

I make several test and

i buy it before end of trial day

regards

 

 

 

Back to Top View phil22's Profile Search for other posts by phil22
 
phil22
Newbie
Newbie


Joined: 19 July 2010
Location: France
Online Status: Offline
Posts: 8
Posted: 28 July 2010 at 4:54am | IP Logged Quote phil22

Hello

i have also this rule with my old URLReplacer:

--> after '?' replace '/' with '&'

the number of '/' can be one 1 or 2 or 3

example:

http://www.mysite.fr/index.php?scr=87/fid=2/force=3

--> http://www.mysite.fr/index.php?scr=87&fid=2&force=3

I see exemples but is it possible to do in one  RewriteRule ?

thanks

 



Edited by phil22 - 28 July 2010 at 8:05am
Back to Top View phil22's Profile Search for other posts by phil22
 
AndrushkaUS
Admin Group
Admin Group


Joined: 13 November 2009
Location: United States
Online Status: Offline
Posts: 3159
Posted: 29 July 2010 at 3:58am | IP Logged Quote AndrushkaUS

Phil,

if you need to re-make all your old-replacer rules, please, provide the scenario with examples.
We'll help you out.

Regards
Andrew

__________________
The will to conquer is the first condition of VICTORY
Back to Top View AndrushkaUS's Profile Search for other posts by AndrushkaUS
 
phil22
Newbie
Newbie


Joined: 19 July 2010
Location: France
Online Status: Offline
Posts: 8
Posted: 29 July 2010 at 9:09am | IP Logged Quote phil22

I'm sorry to ask all.

I have replace all rule of my old file but I had forgotten this rule that is a general rule.

after '?' replace '/' with '&'

the number of '/' can be one 1 or 2 or 3

example :

http://www.mysite.fr/index.php?scr=87/fid=2/force=3

--> http://www.mysite.fr/index.php?scr=87&fid=2&force=3

very thanks

regards

 

Back to Top View phil22's Profile Search for other posts by phil22
 
AndrushkaUS
Admin Group
Admin Group


Joined: 13 November 2009
Location: United States
Online Status: Offline
Posts: 3159
Posted: 30 July 2010 at 4:10am | IP Logged Quote AndrushkaUS

Please, try to use the following
(this should run several loops replacing '/' with '&' one by one)

Code:
RewriteCond %{QUERY_STRING} ^([^/]+)/(.*)$
RewriteRule ^index\.php$ index\.php?%1&%2 [NC,LP]


Regards
Andrew

__________________
The will to conquer is the first condition of VICTORY
Back to Top View AndrushkaUS's Profile Search for other posts by AndrushkaUS
 

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