add parameter in url

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 12
Joined: 07 Jul 2012, 04:01

add parameter in url

29 May 2013, 05:25

I have this code rewriting

# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.56

RewriteEngine on
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
Rewriterule ^(ita|eng|fra)/([^/]+)\.html$ $2.asp?lingua=$1 [NC,L]

now I want to add a parameter to html pages which then is read from the actual asp pages
what rule do I add or how should I modify my code?

the new parameter is a parameter that can be checked but no

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: add parameter in url

29 May 2013, 10:46

Please, give examples of incoming and resulting requests.

Regards
Andrew

User avatar
Posts: 12
Joined: 07 Jul 2012, 04:01

Re: add parameter in url

29 May 2013, 11:17

maintaining the management of the rewrite that's already
I would add that if I find
in the link
www.mydomain.ext/mylang/pagename.ext?nameofparam=myvalue

I wish I had transposed the asp page as a request parameter url

I think I would not rewrite a thing

www.mydomain.ext/pagename.asp?nameofparam=myvalue&mylang=mylanginurl

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: add parameter in url

29 May 2013, 18:53

Hello,

If I understood you correctly, and all you want is to be ably to automatically transfer a parameter, than you need to add QSA-flag to the rule.

Regards
Andrew

User avatar
Posts: 12
Joined: 07 Jul 2012, 04:01

Re: add parameter in url

30 May 2013, 05:15

easiest to do this than to say :)

ty

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 21 guests