Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Rewrite for ASP Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
rocky
Newbie
Newbie


Joined: 28 May 2010
Location: Cambodia
Online Status: Offline
Posts: 5
Posted: 28 May 2010 at 10:14pm | IP Logged Quote rocky

I am a new of ISAPI and I want to change my page to html file.

http://www.cambodiatips.com/news/?newsId=951&view=full
change to
http://www.cambodiatips.com/news/951-cambodia-visit-today.html

I want also to change from non-www version to www (ex. http://cambodiatips.com  to http://www.cambodiatips.com

My server installed on IIS7 with ISAPI V2.1

Appreciate for your help.

Rocky


__________________
Rokhy phean
Back to Top View rocky's Profile Search for other posts by rocky Visit rocky's Homepage
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10488
Posted: 31 May 2010 at 2:44am | IP Logged Quote Anton

As far as I understand, you have a number of pages you want to convert to new format, right?
Then, you'll face with some dificulties achieving this with ISAPI_Rewrite v2.

If you use v3 or Helicon Ape (the latter is preferable for IIS7), I will suggest using map files functionality (which is not available in v2)
which will significantly simplify the config. Otherwise, you'll need to have a separate rule for each newsID.

Is upgrade a viable option for you?

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
rocky
Newbie
Newbie


Joined: 28 May 2010
Location: Cambodia
Online Status: Offline
Posts: 5
Posted: 31 May 2010 at 3:41am | IP Logged Quote rocky

Thanks for your reply.

Yes I have many pages to convert it. Unfortunately, my hosting servers provided only ISAPI_Rewrite V2, so I have no choice.

There is no problem with me to use seperate rules. Please help me.

Please let me know also how to test to make sure that my hosting server is included ISAPI_Rewrite ?

Thanks for your help again.

Rocky

 

Anton wrote:
As far as I understand, you have a number of pages you want to convert to new format, right?
Then, you'll face with some dificulties achieving this with ISAPI_Rewrite v2.

If you use v3 or Helicon Ape (the latter is preferable for IIS7), I will suggest using map files functionality (which is not available in v2)
which will significantly simplify the config. Otherwise, you'll need to have a separate rule for each newsID.

Is upgrade a viable option for you?

Back to Top View rocky's Profile Search for other posts by rocky Visit rocky's Homepage
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10488
Posted: 31 May 2010 at 4:05am | IP Logged Quote Anton

"Please let me know also how to test to make sure that my hosting server is included ISAPI_Rewrite?"
- I guess the best way is to ask the hoster about that...

And the rules will be like this:

[ISAPI_Rewrite]
RewriteRule /news/\?newsId=951&view=full http://www.cambodiatips.com/news/951-cambodia-visit-today.html [I,R]
RewriteRule /news/951-cambodia-visit-today\.html /news/\?newsId=951&view=full [I,L]

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 

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