How to Rewrite Query Parameters into the Path

ISAPI_Rewrite is a powerful URL manipulation engine based on regular expressions
User avatar
Posts: 1
Joined: 12 Jan 2015, 17:45

How to Rewrite Query Parameters into the Path

12 Jan 2015, 17:57

What is the best method to accomplish this task?

http://www.anexample.com/SomePage.html?ID=1234

into

https://m.anexample.com/SomePage/ID/1234

I've looked through the examples and have been able to understand them, however, writing a rule of this scope is beyond my ability at this time.

Any recommendations would be greatly appreciated.

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: How to Rewrite Query Parameters into the Path

13 Jan 2015, 06:52

Hello,

The rule for v2 should be like:

[ISAPI_Rewrite]
RewriteRule /SomePage\.html\?ID=(\d+) https://m.anexample.com/SomePage/ID/$1 [I,RP]
RewriteRule /SomePage/ID/(\d+) /SomePage.html\?ID=$1 [I,L]

User avatar
Posts: 1
Joined: 16 Oct 2017, 03:04

Re: How to Rewrite Query Parameters into the Path

16 Oct 2017, 03:22

At the point when parameters are announced as factor parameters, the technique or capacity gets to promptly the variable that the calling square go in its parameter list. The method gets a pointer to the variable that was passed, and utilizes this pointer to get to the variable's esteem. From this, it takes after that any progressions made to the parameter, will engender back to the calling square. This system can be utilized to pass esteems back in strategies. Along these lines, the calling square should pass a parameter of the very same sort as the announced parameter's sort. https://www.mightyessays.co.uk/ yet in the event that it doesn't, the compiler will produce a mistake. Variable and consistent parameters can be undiscovered. All things considered the variable has no sort, and thus is contrary with every single other sort. In any case, the address administrator can be utilized on it, or it can be can go to a capacity that has likewise an undiscovered parameter. On the off chance that an undiscovered parameter is utilized as a part of a task, or an esteem must be relegated to it, a pigeonhole must be utilized.

User avatar
Posts: 1
Joined: 29 Nov 2017, 03:46

new year wishes in english

29 Nov 2017, 04:08

https://happynewyearwishes.site/

Return to ISAPI_Rewrite 2.x

Who is online

Users browsing this forum: No registered users and 4 guests