Mobile app version of vmapp.org
Login or Join
Sims2060225

: 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

@Sims2060225

Posted in: #Dns

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.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Sims2060225

2 Comments

Sorted by latest first Latest Oldest Best

 

@Gloria169

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

10% popularity Vote Up Vote Down


 

@Connie744

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

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme