Solved

Internal web site redirect

Posted on 2014-01-03
4
317 Views
Last Modified: 2014-01-08
I have an internal website running and would like an easy way for my users to be able to access the site rather than having to put the server name etc... currently its http://company-tools/website.

I would like to maybe create a dns entry that will allow then to go to maybe company.com and it redirect internally to that internal address that i have. Is that possible?
0
Comment
Question by:eli290
  • 2
4 Comments
 
LVL 6

Expert Comment

by:ButlerTechnology
ID: 39753610
I don't think that a DNS entry is possible.  DNS works on the fqdn of the address not the file path.  You should be able to put a simple redirect to the directory.  What web server are you using?
0
 
LVL 25

Expert Comment

by:Zephyr ICT
ID: 39753631
If it's IIS you could use the redirect tool or adjust the web.config file and add the redirect there, this can look something like this (IIS7):

<system.webServer>
    <rewrite>
        <rules>
            <rule name="Root Hit Redirect" stopProcessing="true">
                <match url="^$" />
                <action type="Redirect" url="/website" />
            </rule>
        </rules>
    </rewrite>
</system.webServer>

Open in new window


Replace "redirect" with rewrite if needed.

The redirect tool way:

1- Select your site and click HTTP Redirect in the IIS section (You might need to install this tool first http://www.microsoft.com/en-us/download/details.aspx?id=7435)
2- Select "Redirect requests to this destination"
3- Write down the directory you want to redirect to. In your case "http://company-tools/website"
4- In the next step, Redirect Behavior you might have to select "Only redirect requests to content in this directory (not subdirectories)", or it might not work, experiment with it ...
0
 

Accepted Solution

by:
eli290 earned 0 total points
ID: 39753642
What I ended up doing was simply shortened the address to the root. The way I did this was within

IIS manager,

right click on default web site --> Manage Website --> Advanced Settings --> Then I just changed the physical path to the directory that I needed. Worked like a charm
0
 

Author Closing Comment

by:eli290
ID: 39764670
Was able to find an easy fix for my own question
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

740 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