Solved

Url with "Forward-Slash" Categories

Posted on 2009-04-08
4
353 Views
Last Modified: 2012-05-06
I have an ASP.NET web application that needs to go live sooner then I'd like.  One of the reasons for this is that there will be links in a soon to be published document that point to the site.  The links are unchangable.  Most of the links are in the form of:
ourdomainname.com/articlename (no file extension).  I need to direct users to a physical page within our website's structure when they browse to that URL.  How can I do this?
0
Comment
Question by:ryeandi
  • 2
4 Comments
 
LVL 50

Expert Comment

by:Ryan Chong
ID: 24099088
x_com posted some info at this post:

http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/ASP/Q_24304189.html

that mentioned about ISAPI Rewrite, you may have a look for the links posted on that thread:

http://ask-leo.com/does_iis_support_url_rewriting.html
http://www.helicontech.com/articles/provocative_SEF_URLs.htm


hope that helps
0
 
LVL 7

Accepted Solution

by:
ruscomp earned 500 total points
ID: 24099228
Depending on how many there are, you can trick a Virtual Directory into doing it.

Go into IIS and create a Virtual Directory using the name of the short URL (so in the example ourdomainname.com/articlename, the alias would be "articlename"). The directory can be the same as the main site directory, or you can create a dummy folder as a sub directory and use that. Give it the normal permissions and hit Finish to create the Virtual Directory.

From there, right click on the Virtual Directory and go to Properties. On the first tab select "A redirection to a URL", and then type whatever URL you want "articlename" to go to.

Now when "ourdomainname.com/articlename" is typed in, it will redirect them to URL you specified.
0
 
LVL 1

Author Closing Comment

by:ryeandi
ID: 31568121
Thanks a lot ruscomp.  Exactly what I was looking for.  
0
 
LVL 50

Expert Comment

by:Ryan Chong
ID: 24103483
Personally thinking what ruscomp suggested is workable but not so robust enough. Anyway, glad that you found a solution. cheers
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A Change in PHP Behavior with Session Write Short Circuit (http://php.net/manual/en/book.session.php#116217) (Winter 2014)** With the release of PHP 5.6 the session handler changed in a way that many think should be considered a bug.  See the note …
If I have to fix slow responding website my first thoughts are server side optimizations: the database may not be optimized or caching is not enabled, or things like that. We often overlook another major part of our web application: the client. We o…
This video teaches users how to migrate an existing Wordpress website to a new domain.
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question