Solved

IIS 301 redirects with a non-existing file

Posted on 2006-06-19
3
328 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
[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
  • 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

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…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

617 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