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: This one should be quite simple
Author
Message |
Grey2000
Newbie


Joined: 05 February 2011
Location: South Africa
Posts: 3
Posted: 05 February 2011 at 9:53am

I need

http://www.blogsa.co.za/myblog
and
http://www.blogsa.co.za/myblog/

to be rewritten as

http://www.blogsa.co.za/blogs/blog.aspx?blogname=myblog

Any assistance would be appreciated.

Back to Top
 
Grey2000
Newbie


Joined: 05 February 2011
Location: South Africa
Posts: 3
Posted: 05 February 2011 at 9:56am

I just thought I should add that

Something like

http://www.blogsa.co.za/default.aspx
or
http://www.blogsa.co.za/mypage.htm
(ie anything with an extension)

Should not be rewritten.



Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 07 February 2011 at 3:44am

Please try to put the following lines into httpd.ini in the root of the site:

[ISAPI_Rewrite]

RewriteRule /([^./]+)/? /blogs/blog.aspx\?blogname=$1 [I,L]

__________________
Regards,
Anton
Back to Top
 
Grey2000
Newbie


Joined: 05 February 2011
Location: South Africa
Posts: 3
Posted: 07 February 2011 at 6:02am

Thanks for that. Looks like its working fine.

Had to sort out a couple of relative-url issues for images on the page but now its working well.


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