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: Struggling with Rewrite Rule Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Sinisa
Newbie
Newbie


Joined: 16 January 2010
Online Status: Offline
Posts: 1
Posted: 16 January 2010 at 10:25am | IP Logged Quote Sinisa

Hi there,

Probably it is quit simple, but i struggle (noob) with my Rewrite Rule.
On my domain, i have this page:

http://domain.nl/news/10/title-or-subtitle.html

This has to be the same as

http://domain.nl/news.php?id=1

Below my Rewrite Rule, in httpd.ini, but it doesn't seem to work (404 error):

Code:
[ISAPI_Rewrite]
# ISAPI Rewrite Version 2.

RewriteRule ^/news/(\d)/ news.php\?id=$1 [I,L]


I tried different variations, but i keep struggling

Kind Regards
Back to Top View Sinisa's Profile Search for other posts by Sinisa
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 18 January 2010 at 2:59am | IP Logged Quote Anton

Please fix your config like this:

[ISAPI_Rewrite]
# ISAPI Rewrite Version 2.

RewriteRule /news/(\d+)/.+\.html /news.php\?id=$1 [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