Solved

IIS 301 redirects with a non-existing file

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Today I came across an interesting issue that had me pulling my hair out.  I was troubleshooting a new internal web site which uses integrated security instead of anonymous.  When browsing the site from my laptop, I was able to access it with no iss…
Lync server 2013 or Skype for business 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.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

929 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

10 Experts available now in Live!

Get 1:1 Help Now