This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: How to redirect a page Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
SweeT EviL
Newbie
Newbie


Joined: 09 February 2011
Online Status: Offline
Posts: 20
Posted: 20 July 2011 at 12:59pm | IP Logged Quote SweeT EviL

Hi,

I have this rule:
Code:

RewriteRule ^/cnvrt$ /convert [I,RP]
RewriteRule ^/convert$ /convert.aspx [I,L]


I want that whenever someone enter site.com/cnvrt it will
redirect him to site.com/convert

The problem with the above rule is that it just put a
window that says the page can be found under this url:
....
And what I want is to it redirect him to the page(that
the url will change)

I dont want to handle it in the code level.

How can I do it?

Thanks
Back to Top View SweeT EviL's Profile Search for other posts by SweeT EviL
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 8119
Posted: 25 July 2011 at 5:14am | IP Logged Quote Lexey

RewriteCond Host: (.*)
RewriteCond %HTTPS (on)|.*
RewriteRule /cnvrt http(?2s:)\://$1/convert [I,RP]

RewriteRule /convert /convert.aspx [I,L]
Back to Top View Lexey's Profile Search for other posts by Lexey
 
SweeT EviL
Newbie
Newbie


Joined: 09 February 2011
Online Status: Offline
Posts: 20
Posted: 26 July 2011 at 12:54pm | IP Logged Quote SweeT EviL

It still gives me:
The requested resource was moved. It could be found here:
http://site.co.il/convert

and does NOT redirect me automatically!
Back to Top View SweeT EviL's Profile Search for other posts by SweeT EviL
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 8119
Posted: 29 July 2011 at 1:00pm | IP Logged Quote Lexey

Try to insert
RFStyle New
directive to the global httpd.ini.

After that you may also need to run the proxy configuration script.
Back to Top View Lexey's Profile Search for other posts by Lexey
 
SweeT EviL
Newbie
Newbie


Joined: 09 February 2011
Online Status: Offline
Posts: 20
Posted: 30 July 2011 at 2:22am | IP Logged Quote SweeT EviL

It is shared server - i have only access to that
httpd.ini

Where do you want me to insert it?

Maybe like that:
Code:

..
..
RFStyle New
RewriteRule /cnvrt http(?2s:)\://$1/convert [I,RP]
RewriteRule /convert /convert.aspx [I,L]

?

And where is that proxy configuration script, and how can
I run it?(again I'm on shared server)
Back to Top View SweeT EviL's Profile Search for other posts by SweeT EviL
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 8119
Posted: 30 July 2011 at 4:02am | IP Logged Quote Lexey

SweeT EviL wrote:
It is shared server - i have only access to that
httpd.ini


In this case you will be unable to use the RFStyle directive.

BTW, what is the OS version on the server?
Back to Top View Lexey's Profile Search for other posts by Lexey
 
SweeT EviL
Newbie
Newbie


Joined: 09 February 2011
Online Status: Offline
Posts: 20
Posted: 30 July 2011 at 4:04am | IP Logged Quote SweeT EviL

win server 2003

so what can I do? i stuck with this un-redirecting page?
Back to Top View SweeT EviL's Profile Search for other posts by SweeT EviL
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 8119
Posted: 31 July 2011 at 1:31pm | IP Logged Quote Lexey

What web browser are you using? Try to open the same page with a different browser. Will it make any difference?
And give me a link to this page, if possible.
Back to Top View Lexey's Profile Search for other posts by Lexey
 
SweeT EviL
Newbie
Newbie


Joined: 09 February 2011
Online Status: Offline
Posts: 20
Posted: 03 August 2011 at 1:37am | IP Logged Quote SweeT EviL

any browser i.e. - IE8, FF4, CHROME
address http://mallbiz.co.il/cnvrt
Back to Top View SweeT EviL's Profile Search for other posts by SweeT EviL
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 8119
Posted: 10 August 2011 at 3:54am | IP Logged Quote Lexey

The "server" returns
HTTP/0.9 200 OK response instead of an expected response like
HTTP/1.1 304 Moved
Location: blah-blah

That means there is a kind of a proxy between the real web server and a client. And this proxy damages the response generated by the ISAPI_Rewrite. So, there is not the ISAPI_Rewrite problem. You need to check your web server configuration.
Back to Top View Lexey's Profile Search for other posts by Lexey
 
SweeT EviL
Newbie
Newbie


Joined: 09 February 2011
Online Status: Offline
Posts: 20
Posted: 10 August 2011 at 5:17am | IP Logged Quote SweeT EviL

What the hosting company need to check? What to tell them?
Back to Top View SweeT EviL's Profile Search for other posts by SweeT EviL
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 8119
Posted: 16 August 2011 at 9:48am | IP Logged Quote Lexey

Sorry for a delay. I am on vacations now. Ask the hoster to tell you a list of installed ISAPI filters and hardware and software proxies/forwarders/load balancers on the way of a request.
Back to Top View Lexey's Profile Search for other posts by Lexey
 
SweeT EviL
Newbie
Newbie


Joined: 09 February 2011
Online Status: Offline
Posts: 20
Posted: 18 August 2011 at 4:02am | IP Logged Quote SweeT EviL

"
There are no ISAPI_Filters on the server. The extends that
are on the server are: Front Page extensions , asp.net 1,
asp.net 2, asp, ISAPI_Rewrite, SSI, php and some H-Sphere
extensions.
About proxy: there are no hardware/software proxy.
There is firewall that know to filter only by port/protocol
level 4/ip
"
Back to Top View SweeT EviL's Profile Search for other posts by SweeT EviL
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 8119
Posted: 22 August 2011 at 4:48am | IP Logged Quote Lexey

I would try to disable those extensions (except ISRW) one-by-one to find out which causes the problem. Most likely it the the FPSE.
BTW, I was a bit wrong about a server response. Really the server does not return any HTTP headers at all. Just the response body.
Back to Top View Lexey's Profile Search for other posts by Lexey
 
SweeT EviL
Newbie
Newbie


Joined: 09 February 2011
Online Status: Offline
Posts: 20
Posted: 22 August 2011 at 10:53am | IP Logged Quote SweeT EviL

The problem is that its shared server, they will not
disable extensions just for my site.. They willing to
configure things different, but not disable..
Back to Top View SweeT EviL's Profile Search for other posts by SweeT EviL
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 8119
Posted: 28 August 2011 at 4:50am | IP Logged Quote Lexey

Then, probably, the only thing you could do is to write a custom redirect script (in asp, for example) that will perform a redirect and use write an ISAPIRewrite rule to rewrite the original request to this redirect script.
Like this:

RewriteRule /cnvrt /yourredirectscript.asp [I,L]
Back to Top View Lexey's Profile Search for other posts by Lexey
 

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 cannot vote in polls in this forum