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: Problem with a rule Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Seik
Newbie
Newbie


Joined: 04 March 2011
Online Status: Offline
Posts: 8
Posted: 04 March 2011 at 1:32am | IP Logged Quote Seik

Hi, I have a problem with settings.

I have this rule:

RewriteRule ^/Articulos/([A-Za-z0-9])/([A-Za-z0-9])\.html$ /articulo.asp?id=$1&titulo=$2 [NS,I]

I try to write in the browser:

Articulos/129/1.html

be the same that write:

articulo.asp?id=129&titulo=1

but don't work. What am I doing wrong? thanks very much

Back to Top View Seik's Profile Search for other posts by Seik
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 04 March 2011 at 3:34am | IP Logged Quote Anton

Here's what your rule should be:

RewriteRule /Articulos/([A-Za-z0-9]+)/([A-Za-z0-9])\.html$ /articulo.asp\?id=$1&titulo=$2 [I,L]

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


Joined: 04 March 2011
Online Status: Offline
Posts: 8
Posted: 07 March 2011 at 2:18am | IP Logged Quote Seik

Many thanks for your quick response.

I have tested the rule, and it works!

but had another question, how would remove .html?, to only
be:

Articulos/129/1

Thank you very much again
Back to Top View Seik's Profile Search for other posts by Seik
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 09 March 2011 at 4:47am | IP Logged Quote Anton

Just have it like this:

RewriteRule /Articulos/([A-Za-z0-9]+)/([A-Za-z0-9])$ /articulo.asp\?id=$1&titulo=$2 [I,L]

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


Joined: 04 March 2011
Online Status: Offline
Posts: 8
Posted: 17 March 2011 at 2:43am | IP Logged Quote Seik

Thanks ¡¡¡¡¡

The rule work perfectly ¡¡¡¡

Back to Top View Seik's Profile Search for other posts by Seik
 

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