| Author |
|
phil22 Newbie

Joined: 19 July 2010 Location: France
Online Status: Offline Posts: 8
|
| Posted: 19 July 2010 at 9:39am | IP Logged
|
|
|
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 |
|
| |
AndrushkaUS Admin Group

Joined: 13 November 2009 Location: United States
Online Status: Offline Posts: 3159
|
| Posted: 20 July 2010 at 3:13am | IP Logged
|
|
|
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 |
|
| |
phil22 Newbie

Joined: 19 July 2010 Location: France
Online Status: Offline Posts: 8
|
| Posted: 22 July 2010 at 9:30am | IP Logged
|
|
|
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 |
|
| |
AndrushkaUS Admin Group

Joined: 13 November 2009 Location: United States
Online Status: Offline Posts: 3159
|
| Posted: 23 July 2010 at 4:20am | IP Logged
|
|
|
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 |
|
| |
phil22 Newbie

Joined: 19 July 2010 Location: France
Online Status: Offline Posts: 8
|
| Posted: 23 July 2010 at 6:22am | IP Logged
|
|
|
nothing, no arrow in status column
which log file ? On IIs i have no file today.
|
| Back to Top |
|
| |
phil22 Newbie

Joined: 19 July 2010 Location: France
Online Status: Offline Posts: 8
|
| Posted: 23 July 2010 at 9:45am | IP Logged
|
|
|
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 |
|
| |
AndrushkaUS Admin Group

Joined: 13 November 2009 Location: United States
Online Status: Offline Posts: 3159
|
| Posted: 26 July 2010 at 3:35am | IP Logged
|
|
|
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:
Regards
Andrew
__________________ The will to conquer is the first condition of VICTORY
|
| Back to Top |
|
| |
phil22 Newbie

Joined: 19 July 2010 Location: France
Online Status: Offline Posts: 8
|
| Posted: 26 July 2010 at 4:07am | IP Logged
|
|
|
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 |
|
| |
AndrushkaUS Admin Group

Joined: 13 November 2009 Location: United States
Online Status: Offline Posts: 3159
|
| Posted: 26 July 2010 at 4:26am | IP Logged
|
|
|
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 |
|
| |
phil22 Newbie

Joined: 19 July 2010 Location: France
Online Status: Offline Posts: 8
|
| Posted: 27 July 2010 at 4:27am | IP Logged
|
|
|
Hello
thanks
All is ok
I make several test and
i buy it before end of trial day
regards
|
| Back to Top |
|
| |
phil22 Newbie

Joined: 19 July 2010 Location: France
Online Status: Offline Posts: 8
|
| Posted: 28 July 2010 at 4:54am | IP Logged
|
|
|
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 |
|
| |
AndrushkaUS Admin Group

Joined: 13 November 2009 Location: United States
Online Status: Offline Posts: 3159
|
| Posted: 29 July 2010 at 3:58am | IP Logged
|
|
|
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 |
|
| |
phil22 Newbie

Joined: 19 July 2010 Location: France
Online Status: Offline Posts: 8
|
| Posted: 29 July 2010 at 9:09am | IP Logged
|
|
|
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 |
|
| |
AndrushkaUS Admin Group

Joined: 13 November 2009 Location: United States
Online Status: Offline Posts: 3159
|
| Posted: 30 July 2010 at 4:10am | IP Logged
|
|
|
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 |
|
| |