wesmanbigmig13
asked on
htaccess URL Rewrite with variable
Hi Experts
I need an htaccess rewrite rule to redirect from the following URL format:
xyz.com/ABC123
to the following URL format:
http://abc.com/parm?Search.Active=True&Search.SerialType=1&Search.SerialNumber=ABC123&%23=FIND+ASSET
Note that the part marked in bold is a variable that will change. It can contain one to three letters and/or one to three numbers and can be a minimum of 1 character in length and a maximum of 6 characters in length.
What is the rewrite rule that I need please?
Thanks
I need an htaccess rewrite rule to redirect from the following URL format:
xyz.com/ABC123
to the following URL format:
http://abc.com/parm?Search.Active=True&Search.SerialType=1&Search.SerialNumber=ABC123&%23=FIND+ASSET
Note that the part marked in bold is a variable that will change. It can contain one to three letters and/or one to three numbers and can be a minimum of 1 character in length and a maximum of 6 characters in length.
What is the rewrite rule that I need please?
Thanks
ASKER
Thanks Ray. I'm sure those links would be useful but I am a full paying member of Experts Exchange and was actually looking for a solution to the question rather than pointers as to where to continue my education or the search for an answer.
Thanks
Thanks
ASKER
A link to Google.com would also be helpful I have no doubt, but that's not why I pay $100 a year to Experts Exchange :) ...I need the rewrite rule as requested in my original question posted here. Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Have to look up the solution myself using Google - Experts Exchange is no longer useful like it used to be since the points per solution model was abandoned.
https://www.addedbytes.com/articles/for-beginners/url-rewriting-for-beginners/
https://www.smashingmagazine.com/2011/11/introduction-to-url-rewriting/
http://httpd.apache.org/docs/current/mod/mod_rewrite.html