• Sign in to Neowin Faster!

    Create an account on Neowin to contribute and support the site.

  • 0
Sign in to follow this  

c# Short URL wo Page in path

Question

James Rose    38

Okay, I am again in need of something and I don't know what it's called so that I can find it.

 

Generally in asp/asp.net you see a page with a parameter like this;   www.site.com/page.asp?id=123   What I am looking for it the ability for; www.site.com/123

 

Thanks, and hopefully you have a laugh at my ignorance

 

Have a fun day

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0
XerXis    259

You will need rewrite rules.

 

Although I suggest using asp.NET MVC which takes care of most of the stuff for you by setting up a route system :)

Share this post


Link to post
Share on other sites
  • 0
TAZMINATOR    12,416

if it is blog software like wordpress, check it in the settings which you can change the path/url format.

 

otherwise use the rewrite rule for that.

 

Share this post


Link to post
Share on other sites
  • 0
James Rose    38

Rewrite Rules, perfect thank you.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.