| Author |
|
SweeT EviL Newbie

Joined: 09 February 2011
Online Status: Offline Posts: 20
|
| Posted: 20 July 2011 at 12:59pm | IP Logged
|
|
|
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 |
|
| |
Lexey Moderator Group

Joined: 15 August 2002 Location: Russian Federation
Online Status: Offline Posts: 8119
|
| Posted: 25 July 2011 at 5:14am | IP Logged
|
|
|
RewriteCond Host: (.*)
RewriteCond %HTTPS (on)|.*
RewriteRule /cnvrt http(?2s:)\://$1/convert [I,RP]
RewriteRule /convert /convert.aspx [I,L]
|
| Back to Top |
|
| |
SweeT EviL Newbie

Joined: 09 February 2011
Online Status: Offline Posts: 20
|
| Posted: 26 July 2011 at 12:54pm | IP Logged
|
|
|
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 |
|
| |
Lexey Moderator Group

Joined: 15 August 2002 Location: Russian Federation
Online Status: Offline Posts: 8119
|
| Posted: 29 July 2011 at 1:00pm | IP Logged
|
|
|
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 |
|
| |
SweeT EviL Newbie

Joined: 09 February 2011
Online Status: Offline Posts: 20
|
| Posted: 30 July 2011 at 2:22am | IP Logged
|
|
|
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 |
|
| |
Lexey Moderator Group

Joined: 15 August 2002 Location: Russian Federation
Online Status: Offline Posts: 8119
|
| Posted: 30 July 2011 at 4:02am | IP Logged
|
|
|
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 |
|
| |
SweeT EviL Newbie

Joined: 09 February 2011
Online Status: Offline Posts: 20
|
| Posted: 30 July 2011 at 4:04am | IP Logged
|
|
|
win server 2003
so what can I do? i stuck with this un-redirecting page?
|
| Back to Top |
|
| |
Lexey Moderator Group

Joined: 15 August 2002 Location: Russian Federation
Online Status: Offline Posts: 8119
|
| Posted: 31 July 2011 at 1:31pm | IP Logged
|
|
|
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 |
|
| |
SweeT EviL Newbie

Joined: 09 February 2011
Online Status: Offline Posts: 20
|
| Posted: 03 August 2011 at 1:37am | IP Logged
|
|
|
any browser i.e. - IE8, FF4, CHROME
address http://mallbiz.co.il/cnvrt
|
| Back to Top |
|
| |
Lexey Moderator Group

Joined: 15 August 2002 Location: Russian Federation
Online Status: Offline Posts: 8119
|
| Posted: 10 August 2011 at 3:54am | IP Logged
|
|
|
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 |
|
| |
SweeT EviL Newbie

Joined: 09 February 2011
Online Status: Offline Posts: 20
|
| Posted: 10 August 2011 at 5:17am | IP Logged
|
|
|
What the hosting company need to check? What to tell them?
|
| Back to Top |
|
| |
Lexey Moderator Group

Joined: 15 August 2002 Location: Russian Federation
Online Status: Offline Posts: 8119
|
| Posted: 16 August 2011 at 9:48am | IP Logged
|
|
|
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 |
|
| |
SweeT EviL Newbie

Joined: 09 February 2011
Online Status: Offline Posts: 20
|
| Posted: 18 August 2011 at 4:02am | IP Logged
|
|
|
"
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 |
|
| |
Lexey Moderator Group

Joined: 15 August 2002 Location: Russian Federation
Online Status: Offline Posts: 8119
|
| Posted: 22 August 2011 at 4:48am | IP Logged
|
|
|
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 |
|
| |
SweeT EviL Newbie

Joined: 09 February 2011
Online Status: Offline Posts: 20
|
| Posted: 22 August 2011 at 10:53am | IP Logged
|
|
|
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 |
|
| |
Lexey Moderator Group

Joined: 15 August 2002 Location: Russian Federation
Online Status: Offline Posts: 8119
|
| Posted: 28 August 2011 at 4:50am | IP Logged
|
|
|
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 |
|
| |