: How to forward URL to a different one? Is there any way to forward or shorten (example): example.this.com/123/ABC to example.this.com/ABC CName doesn't cut it, and I am not sure how
Is there any way to forward or shorten (example):
example.this.com/123/ABC
to
example.this.com/ABC
CName doesn't cut it, and I am not sure how to do a forward or url-shorten? I am not looking for bit.ly or those kinds of things. I would prefer to keep this done in house. Rewrite Rule in ISS would work too but I just don't know how to set it up.
More posts by @Sims2060225
2 Comments
Sorted by latest first Latest Oldest Best
I realize now that this is a wrong category but I have to post that I managed to write this and I want to share to help anyone else with the same problem.
I used URL Rewrite, which you can download and install on your IIS: Video- What is URL Rewrite
Requested URL: Matches Pattern
Using: Regular Expressions
Pattern: ^([_0-9a-z-]+.aspx)
Let me explain what this means:
^ is anything before,
[_0-9a-z-] is any character or number
.aspx is not a pattern, this are those exact characters
Ignore case: checked
Action Type: rewrite
Rewrite URL: example.this.com/ABC.aspx (I oversimplified my example this is truly what I needed it for)
Append query string: checked
Yes you need to rewrite the Rules in the IIS server.
Follow this tutorial which gives detailed explanation on how to rewrite the Rules in IIS server
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.