This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: rule 1 and 2 variables
Author
Message |
evoarte
Newbie


Joined: 04 April 2011
Posts: 13
Posted: 27 December 2011 at 6:44am

rule 1 and 2 variables, is it possible?

I have established this rule:
RewriteRule ^name_pre/([A-Za-z0-9_-]+)/?([ A-Za-z0-9_-]+)/?$
/name_pre.asp?plink=$1&name_prov=$2 [NC, L ]

It does not work when using a url like this:
www.mipageurl.com/name_pre/name_service/
www.mipageurl.com/name_pre/name_service/

Can I use a rule like this for 4 url?:
www.mipageurl.com / name_pre / name_service
www.mipageurl.com/name_pre/name_service/
www.mipageurl.com / name_pre / name_service / name_prov
www.mipageurl.com/name_pre/name_service/name_prov/

thanks



Edited by evoarte - 27 December 2011 at 6:46am
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 28 December 2011 at 10:26am

Please try to fix your rule as follows:

RewriteBase /
RewriteRule ^name_pre/([A-Za-z0-9_-]+)(?:/([A-Za-z0-9_-]+))?/?$ /name_pre.asp\?plink=$1(?2&name_prov=$2) [NC,L]

__________________
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