Solved

IIS 301 redirects with a non-existing file

Posted on 2006-06-19
3
316 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How do I get my SSL Certificate Reissued for SHA-1 4 88
DLL in ASP.NET 20 73
Exchange 2013 where are images stored? 2 52
IIs Windows 2008 HTTPS no access 4 50
First of all, clustering IIS is something you should rarely consider doing. In almost all cases, Microsoft Network Load Balancing (NLB) (http://technet.microsoft.com/en-us/library/cc758834(WS.10).aspx) is a much better solution when you need to p…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used.

792 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