Solved

IIS 301 redirects with a non-existing file

Posted on 2006-06-19
3
310 Views
Last Modified: 2008-01-09
It seems that its possible to do a 301 redirect in apache even if the file no longer exists.  Is this possible to do this in IIS?  I currently have blank html files that are redirecting to valid URLs and I want to get rid of the blank pages completely.

Thanks,
-Nathan
0
Comment
Question by:neight108
  • 2
3 Comments
 
LVL 37

Accepted Solution

by:
meverest earned 100 total points
ID: 16941175
If you want to use the GUI to add the redirectl then you will need some file in there to give you something to right click on.  Once the redirect is created, you should be able to delete the physical file.

else, add the 301 directly to the metabase.xml:

<IIsWebFile     Location ="/LM/W3SVC/xxxxxx/ROOT/path/path/oldfile.html"
     >
     <Custom
          Name="HttpRedirect"
          ID="6011"
          Value="http://www.mydomain.com/path/path/newfile.html, EXACT_DESTINATION"
          Type="STRING"
          UserType="IIS_MD_UT_FILE"
          Attributes="NO_ATTRIBUTES"
     />
</IIsWebFile>

replace 'xxxxxx' with the websiteID (look at the 'identifier' column in the list of web sites) and the path to the file after /ROOT/

paste one of those in there for each redirect, and save it off.  all done.

Cheers.
0
 

Author Comment

by:neight108
ID: 16943185
thanks, I will give this a try.
0
 

Author Comment

by:neight108
ID: 16953402
it worked great, thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
Lync server 2013 Backup Service Error ID 4049 – After File Share Migration
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

707 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

15 Experts available now in Live!

Get 1:1 Help Now