?
Solved

Mask organization name in website URLs

Posted on 2014-07-22
6
Medium Priority
?
180 Views
Last Modified: 2014-07-22
Our website URLs begin with our organization name at the root level, like this:

OurCompany/OurProducts/ProductA.aspx


How can I mask or remove the organization name at the root level, so that it does not appear in browser search bars?

ie:  The above URL should look like this:

nnnnn/OurProducts/ProductA.aspx

(or simply not display the root level):

OurProducts/ProductA.aspx


(I've seen articles which describe rewriting query string parameters, but I'm trying to mask the organization name at the root level).

I'm using Visual Studio 2010, Visual Basic.Net
Thanks!
0
Comment
Question by:mbizup
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 19

Accepted Solution

by:
Montoya earned 2000 total points
ID: 40211316
Register a different domain name and use that domain name to point to your DNS. This is akin to www.hp.com being the same as www.hewlettpackard.com, with the exception that you won't be using one of the two names.
0
 
LVL 61

Author Comment

by:mbizup
ID: 40211346
Thanks for the reply.

I'm familiar with website programming, but am a real newbie when it comes to publishing sites.

<< Register a different domain name and use that domain name to point to your DNS>>

That would involve a call to the hosting organization, right (ie: it's not something that I would do in the .Net project)?

<<This is akin to www.hp.com being the same as www.hewlettpackard.com>>

Using the HP example, do I need to rewrite any code in my application for this to work?  For example, I have a lot of statements like:

response.redirect "~/Products/ProductB.aspx"

Would the URL automatically display "hp" at the root level, or would I need to adjust the code to not display "HewlettPackard"?
0
 
LVL 19

Expert Comment

by:Montoya
ID: 40211354
if your code is using relative paths, then you should be okay. If you're using FQN, then you will end up doing a lot of rewriting, unless you can simply do Alias. I'll send you a couple of links.

Registering a new name is a pretty simple process. From there, you can use your host's control panel to point to your nameservers. That is a little different with every host, so I don't have instructions on that for you.
0
Quick Cloud Training

Looking for some quick training on the cloud in 2 hours or less? Check out these how-to guides in AWS, Linux, OpenStack, Azure, and more!

 
LVL 19

Expert Comment

by:Montoya
ID: 40211357
I dont know if you're hosting IIS or Apache, but here's the link for Apache:

http://code.tutsplus.com/articles/apache-aliasing-and-redirection--net-28606
0
 
LVL 19

Assisted Solution

by:Montoya
Montoya earned 2000 total points
ID: 40211360
0
 
LVL 61

Author Comment

by:mbizup
ID: 40211396
Good stuff to get started with - thanks for the help.

I'll post a separate thread if If I have follow up questions.
0

Featured Post

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Question has a verified solution.

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

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
The viewer will learn how to dynamically set the form action using jQuery.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

765 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