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
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: delete .html from url Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
sanderd777
Newbie
Newbie


Joined: 06 September 2011
Online Status: Offline
Posts: 2
Posted: 06 September 2011 at 3:23am | IP Logged Quote sanderd777

I believe this should be a very simple rewrite, but I can't get it working.

I want to change my url for one page on my website.

I want to change
www.forexample.com/help.html
to
www.forexample.com/help

What code should I use for this, and where to place the httpd.ini file?

Hope you can help me!

Thanks,
Sander
Back to Top View sanderd777's Profile Search for other posts by sanderd777
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 06 September 2011 at 3:59am | IP Logged Quote Anton

Please try using the following:

[ISAPI_Rewrite]

RewriteRule /help\.html http\://www.forexample.com/help [I,RP]
RewriteRule /help /help.html [I,L]

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


Joined: 06 September 2011
Online Status: Offline
Posts: 2
Posted: 06 September 2011 at 4:07am | IP Logged Quote sanderd777

Hi Anton,

Thanks for your reply. Unfortunatly there is no change, still getting a 404
error.

How can I check that the httpd.ini file is properly placed and is connected to?

Thanks,
Sander
Back to Top View sanderd777's Profile Search for other posts by sanderd777
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 06 September 2011 at 4:31am | IP Logged Quote Anton

Put the testing rule at the top of your config:

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

Request yoursite.com/test.
If you get Google page, ISAPI_Rewrite works fine. If it's 404 or some other error, then there might be some problems.
Please try.

__________________
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