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 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: New server
Author
Message |
jhodgso4
Newbie


Joined: 30 July 2010
Location: United Kingdom
Posts: 6
Posted: 30 July 2010 at 12:48pm

Hi
We have moved our website to a new server running ISAPI_Rewrite 2 and the rewrites are no longer working. I cant work out what version the rewrites were originally written in so there are some examples below. The address to the site is www.edwardsandpearce.co.uk. The httpd.ini is in the root folder but I'm completely stuck. As new jobs are added to the site I think the code somewhere adds a rewrite to this file as there are hundreds in here.

Thanks for any help
Joe

[ISAPI_Rewrite]


# 3600 = 1 hour

CacheClockRate 3600

RepeatLimit 32

# Block external access to the httpd.ini and httpd.parse.errors files

rewriteRule /httpd(?:\.ini|\.parse\.errors).* / [F,I,O]

# Block external access to the Helper isapi Extension

rewriteRule .*\.isrwhlp / [F,I,O]

RewriteRule /default.html /default.asp [I,L]
RewriteRule /about/default.html /about/default.asp [I,L]
RewriteRule /about/careers.html /about/careers.asp [I,L]
RewriteRule /about/hr_forums.html /about/hr_forums.asp [I,L]
RewriteRule /recruitment/default.html /recruitment/default.asp [I,L]
RewriteRule /recruitment/submit_vacancy_form.html /recruitment/submit_vacancy.asp [I,L]
RewriteRule /recruitment/confirm_submit.html /recruitment/confirm_submit.asp [I,L]
RewriteRule /jobs/default.html /jobs/default.asp [I,L]
RewriteRule /jobs/register_cv.html /jobs/register.asp [I,L]
RewriteRule /jobs/confirm_register_cv.html /jobs/confirm_register.asp [I,L]
RewriteRule /jobs/email_alerts/default.html /jobs/email_alerts/default.asp [I,L]
RewriteRule /jobs/email_alerts/confirm.html /jobs/email_alerts/confirm.asp [I,L]
RewriteRule /jobs/refer/default.html /jobs/refer/default.asp [I,L]
RewriteRule /jobs/refer/confirm.html /jobs/refer/confirm.asp [I,L]
Back to Top
 
jhodgso4
Newbie


Joined: 30 July 2010
Location: United Kingdom
Posts: 6
Posted: 01 August 2010 at 11:40am

ANy one got any ideas on this one?
Thanks
Joe
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 02 August 2010 at 3:02am

Well. the rules look ok.
Could you please explain what requests don't work and how you expect them to work.

__________________
Regards,
Anton
Back to Top
 
jhodgso4
Newbie


Joined: 30 July 2010
Location: United Kingdom
Posts: 6
Posted: 02 August 2010 at 3:10am

None of the rules work at all. I have put it onto another test server, one that I have root control to. I installed ISAPI_rewrite v3 and it works perfectly. But on the shared host, nothing redirects. Would it be the fact they have version 2 installed. If so I'll concentrate on getting them to upgrade.
Thanks
Joe
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 02 August 2010 at 3:43am

The thing is that the rules are actually written in v2 syntax.
Can you access the destination URLs directly, bypassing the ISAPI_Rewrite?
Also, if possible, can you provide RDP to your test server so I can check what's wrong?

__________________
Regards,
Anton
Back to Top
 
jhodgso4
Newbie


Joined: 30 July 2010
Location: United Kingdom
Posts: 6
Posted: 02 August 2010 at 4:54am

Hi
Thanks for your reply.
I can go directly to the destination rules yes, not a problem. Unfortunately I dont have RDP access. The server is on HeartInternet, on a shared hosting plan so I am limited to log files and config files.
Thanks
Joe
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 02 August 2010 at 9:08am

Do you get 404 error for your requests?
Please try some simple testing rule to make sure ISAPI_Rewrite is working for you at all, e.g.

RewriteRule /test http\://www.google.com [I,RP]

Try to request yoursite.com/test and if ISAPI_Rewrite works, you'll get the Google page, otherwise it will be 404.

Ans ask your host to make sure ISAPI_Rewrite is ok.

__________________
Regards,
Anton
Back to Top
 
jhodgso4
Newbie


Joined: 30 July 2010
Location: United Kingdom
Posts: 6
Posted: 02 August 2010 at 10:16am

I get a 404 error yes with all requests, and the one you have just asked me to test.
One thing I have noticed though, the script writes to a .htaccess file rather than httpd.ini. Is there a setting in ISAPI_Rewrite that allows reading of .htaccess?
Thanks for all your help.
Joe
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 03 August 2010 at 1:55am

"the script writes to a .htaccess file rather than httpd.ini"
- then are you sure the host has v2 not v3. Please clarify.
It's possible to change default config name in v3 but not in v2...

__________________
Regards,
Anton
Back to Top
 
jhodgso4
Newbie


Joined: 30 July 2010
Location: United Kingdom
Posts: 6
Posted: 03 August 2010 at 3:30am

Sorry, I think I've confused things.

The test server that I have got this working on has ISAPI_rewrite v3, this is a standalone win2003 server on my network.

But I need this to work on our host, which is a shared server using ISAPI_rewrite v2.

Hope this helps.
Joe
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 03 August 2010 at 4:34am

Ok, i see.
So does the initial config you provided work on your local server or on the host?
If it doesn't work on the host, can you please ask them to check ISAPI_Rewrite operation as the rules are absolutely correct.
Also please show the sample request you are trying to get working.

__________________
Regards,
Anton
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
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