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: delete .html from url
Author
Message |
sanderd777
Newbie


Joined: 06 September 2011
Posts: 2
Posted: 06 September 2011 at 3:23am

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
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 06 September 2011 at 3:59am

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
 
sanderd777
Newbie


Joined: 06 September 2011
Posts: 2
Posted: 06 September 2011 at 4:07am

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
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 06 September 2011 at 4:31am

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
 

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