Solved

Mask organization name in website URLs

Posted on 2014-07-22
6
175 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 500 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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 500 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

733 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