Solved

Mask organization name in website URLs

Posted on 2014-07-22
6
169 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
  • 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
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.

 
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Get Top Visible Row of Datagridview 6 28
VS.net 2010 11 26
Automated testing suggestions? 2 28
Grunt Copy file to another destination. 1 14
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

867 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now