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: Problem with a rule
Author
Message |
Seik
Newbie


Joined: 04 March 2011
Posts: 8
Posted: 04 March 2011 at 1:32am

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


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 04 March 2011 at 3:34am

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


Joined: 04 March 2011
Posts: 8
Posted: 07 March 2011 at 2:18am

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


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 09 March 2011 at 4:47am

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


Joined: 04 March 2011
Posts: 8
Posted: 17 March 2011 at 2:43am

Thanks ¡¡¡¡¡

The rule work perfectly ¡¡¡¡

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