| Author |
|
webb Newbie

Joined: 06 February 2009
Online Status: Offline Posts: 34
|
| Posted: 25 February 2011 at 7:49pm | IP Logged
|
|
|
I don't know how to begin i was about to launch my site and boom the version of Isapi rewrite was not correct as they have on V2 but it showed V3 in the control panel.
i've written my scripts with Antons help and now i have to convert them to version 2!!!!
I need help badly
# Helicon ISAPI_Rewrite configuration file # Version 3.1.0.78
RewriteEngine on # RewriteBase /
RewriteRule ^what-books.html$ /what.asp [NC,L] RewriteRule ^what\.asp$ /what-books.html [NC,R=301,L]
RewriteRule ^why-hire.html$ /why.asp [NC,L] RewriteRule ^why\.asp$ /why-hire.html [NC,R=301,L]
RewriteRule ^where-should-it-go.html$ /where.asp [NC,L] RewriteRule ^where\.asp$ /where-should-it-go.html [NC,R=301,L]
RewriteRule ^how-cost.html$ /pricing.asp [NC,L] RewriteRule ^pricing\.asp$ /how-cost.html [NC,R=301,L]
RewriteRule ^who-do-i-contact.html$ /contact.asp [NC,L] RewriteRule ^contact\.asp$ /who-do-i-contact.html [NC,R=301,L]
RewriteRule ^faqs.html$ /faqs.asp [NC,L] RewriteRule ^faqs\.asp$ /faqs.html [NC,R=301,L]
RewriteRule ^about-us.html$ /about.asp [NC,L] RewriteRule ^about\.asp$ /about-us.html [NC,R=301,L]
RewriteRule ^what-was-said.html$ /testimonials.asp [NC,L] RewriteRule ^testimonials\.asp$ /what-was-said.html [NC,R=301,L]
RewriteRule ^hallfame.html$ /hof.asp [NC,L] RewriteRule ^hof\.asp$ /hallfame.html [NC,R=301,L]
RewriteCond %{QUERY_STRING} ^entityid=(\d+)$ [NC] RewriteRule ^news\.asp$ news%1.html? [NC,R=301,L] RewriteRule ^news(\d+)\.html$ news.asp?entityid=$1 [NC,L]
RewriteCond %{QUERY_STRING} ^fid=(\d+)$ [NC] RewriteRule ^newscategory\.asp$ newscategory%1.html? [NC,R=301,L] RewriteRule ^newscategory(\d+)\.html$ newscategory.asp?fid=$1 [NC,L]
RewriteCond %{QUERY_STRING} ^catid=(\d+)&m=(\d+)$ [NC]
RewriteRule ^newsarchives\.asp$ newsarchives/%1/%2.html? [NC,R=301,L]
RewriteRule ^newsarchives/(\d+)/(\d+)\.html$ newsarchives.asp?catid=$1&m=$2 [NC,L]
Above are all my scripts so far.
Thank you for your help.
|
| Back to Top |
|
| |
Anton Admin Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 10520
|
| Posted: 28 February 2011 at 3:31am | IP Logged
|
|
|
Here's what you need to have for v2:
[ISAPI_Rewrite]
RewriteRule /what-books\.html /what.asp [I,L]
RewriteRule /what\.asp /what-books.html [I,RP]
RewriteRule /why-hire\.html /why.asp [I,L]
RewriteRule /why\.asp /why-hire.html [I,RP]
RewriteRule /where-should-it-go\.html /where.asp [I,L]
RewriteRule /where\.asp /where-should-it-go.html [I,RP]
RewriteRule /how-cost\.html /pricing.asp [I,L]
RewriteRule /pricing\.asp /how-cost.html [I,RP]
RewriteRule /who-do-i-contact\.html /contact.asp [I,L]
RewriteRule /contact\.asp /who-do-i-contact.html [I,RP]
RewriteRule /faqs\.html /faqs.asp [I,L]
RewriteRule /faqs\.asp /faqs.html [I,RP]
RewriteRule /about-us\.html /about.asp [I,L]
RewriteRule /about\.asp /about-us.html [I,RP]
RewriteRule /what-was-said\.html /testimonials.asp [I,L]
RewriteRule /testimonials\.asp /what-was-said.html [I,RP]
RewriteRule /hallfame\.html /hof.asp [I,L]
RewriteRule /hof\.asp /hallfame.html [I,RP]
RewriteRule /news\.asp\?entityid=(\d+) /news$1.html [I,RP]
RewriteRule /news(\d+)\.html /news.asp?entityid=$1 [I,L]
RewriteRule /newscategory\.asp\?fid=(\d+) /newscategory$1.html [I,RP]
RewriteRule /newscategory(\d+)\.html /newscategory.asp?fid=$1 [I,L]
RewriteRule /newsarchives\.asp\?catid=(\d+)&m=(\d+) /newsarchives/$1/$2.html [I,RP]
RewriteRule /newsarchives/(\d+)/(\d+)\.html /newsarchives.asp?catid=$1&m=$2 [I,L]
__________________ Regards,
Anton
|
| Back to Top |
|
| |
webb Newbie

Joined: 06 February 2009
Online Status: Offline Posts: 34
|
| Posted: 28 February 2011 at 7:03am | IP Logged
|
|
|
Hi Anton,
Thanks for your reply. I have been informed that the version is 3.0.0.31. The reason why they have a httpd.ini is because it interferes with IIS password.
If you don't mind what else can i do now??
Thanks for your help
|
| Back to Top |
|
| |
webb Newbie

Joined: 06 February 2009
Online Status: Offline Posts: 34
|
| Posted: 28 February 2011 at 7:10am | IP Logged
|
|
|
I'm now getting the following error with Firefox :
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
httpd.ini file content below:
# Helicon ISAPI_Rewrite configuration file # Version 3.1.0.78
Options +FollowSymlinks RewriteEngine on # RewriteBase /
RewriteRule ^what-books.html$ /what.asp [NC,L] RewriteRule ^what\.asp$ /what-books.html [NC,R=301,L]
Thanks Anton
|
| Back to Top |
|
| |
webb Newbie

Joined: 06 February 2009
Online Status: Offline Posts: 34
|
| Posted: 28 February 2011 at 7:26am | IP Logged
|
|
|
I ran this test and it worked?
RewriteRule .? - [F]
|
| Back to Top |
|
| |
Anton Admin Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 10520
|
| Posted: 28 February 2011 at 7:36am | IP Logged
|
|
|
So, after all you are using v3 but the config name was changed to httpd.ini not to interfere with IISPassword?
Then, first, uncomment the RewriteBase statement.
Make sure you don't have ISAPI_Rewrite filter registered twice - on server and site level.
And check whether your .asp does any redirects itself and if the can corrupt the ISAPI_Rewrite ones.
__________________ Regards,
Anton
|
| Back to Top |
|
| |
webb Newbie

Joined: 06 February 2009
Online Status: Offline Posts: 34
|
| Posted: 28 February 2011 at 8:19am | IP Logged
|
|
|
I've uncommented Rewritebase statement. The web host will check tomorrow if it's installed twice.
No redirects on the asp page. The files run on my dev server with my version.
Thanks Anton
|
| Back to Top |
|
| |
webb Newbie

Joined: 06 February 2009
Online Status: Offline Posts: 34
|
| Posted: 28 February 2011 at 9:49pm | IP Logged
|
|
|
They checked and made some changes to the rules and they now work.
# Helicon ISAPI_Rewrite configuration file # Version 3.1.0.78
#RewriteRule .? - [F] Options +FollowSymlinks RewriteBase /
RewriteEngine on
RewriteRule ^what-is-a-photobooth.html$ /what.asp [NC,L]
RewriteRule ^why-should-you-hire-a-photobooth.html$ /why.asp [NC,L]
RewriteRule ^where-should-it-go.html$ /where.asp [NC,L]
RewriteRule ^how-much-does-it-cost.html$ /pricing.asp [NC,L]
RewriteRule ^who-do-i-contact.html$ /contact.asp [NC,L]
RewriteRule ^faqs.html$ /faqs.asp [NC,L]
RewriteRule ^about-us.html$ /about.asp [NC,L]
RewriteRule ^what-was-said.html$ /testimonials.asp [NC,L]
RewriteRule ^hall-of-fame.html$ /hof.asp [NC,L]
These all run fine bu the dynamic rules won't run?
Dynamic rules below:
RewriteCond %{QUERY_STRING} ^entityid=(\d+)$ [NC] RewriteRule ^news\.asp$ news%1.html? [NC,R=301,L] RewriteRule ^news(\d+)\.html$ news.asp?entityid=$1 [NC,L]
RewriteCond %{QUERY_STRING} ^fid=(\d+)$ [NC] RewriteRule ^newscategory\.asp$ newscategory%1.html? [NC,R=301,L] RewriteRule ^newscategory(\d+)\.html$ newscategory.asp?fid=$1 [NC,L]
RewriteCond %{QUERY_STRING} ^catid=(\d+)&m=(\d+)$ [NC] RewriteRule ^newsarchives\.asp$ newsarchives/%1/%2.html? [NC,R=301,L] RewriteRule ^newsarchives/(\d+)/(\d+)\.html$ newsarchives.asp?catid=$1&m=$2 [NC,L]
Thanks Anton
|
| Back to Top |
|
| |
|
|