How to Rewrite Query Parameters into the Path
4 posts
• Page 1 of 1
How to Rewrite Query Parameters into the Path
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.
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.
Re: How to Rewrite Query Parameters into the Path
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]
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]
- elliewillis
- Posts: 1
- Joined: 16 Oct 2017, 03:04
Re: How to Rewrite Query Parameters into the Path
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.
- happynewyearwishes
- Posts: 1
- Joined: 29 Nov 2017, 03:46
new year wishes in english
https://happynewyearwishes.site/
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 4 guests