Posts Tagged ‘IIS’
IIS: Redirection from non-www to www domain
Written by jf on August 8, 2008 – 6:00 am -The problem today, is that we have a great asp.net website but search engines are indexing the http://greataspnetwebsite.com instead of http://www.greataspnetwebsite.com, this is commonly seen on the web and there are several ways to archive a good result for making the non-www to www domain. This redirection should be a 301 Permanently Moved, otherwise you will might lose your search engine indexed page or become duplicate content for your non-www and www domain. Here are easy steps how to archive a quick and clean Permanent Redirection using IIS.
Consider the case where we already have a website in IIS called: greataspnetwebsite.com
- Go to IIS Manager
- Create a new website that point to the same directory as your existing one
- Select the newly created website, open the properties box
- In the option button “When connecting to this resource the content should come from” should be change to “A redirection to a URL“
- Specify the URL http://www.greataspnetwebsite.com
- Select the check box that says “A permanent redirection for this resource.”
IIS Log Archiving
Written by jf on June 24, 2008 – 9:58 am -You need to archive your IIS Log often so as not to get your log folder full with HTTP Logs.
I have been searching for some quick implemented solutions for performing this IIS Log archiving task and found some quiet nice discussions and article about it. Here are the links to the different post and forums that talk about a solution to solve this issue:
http://blogs.thesitedoctor.co.uk/tim/2007/02/10/Automatically+Delete+Old+IIS+Log+Files.aspx
http://www.iislogs.com/ (Tool to automate maintenance of IIS Log)
http://forums.webhostautomation.com/showthread.php?t=5053
http://forums.iis.net/p/1022450/1388469.aspx
On my side i need something with a bit more functionality so, i modified some of the scripts that i could find on the different article related above and came up with a solution that can.
- Compress each log file found in your websites folder
- FTP the compressed files on a foreign server ( Keeping historic of your IIS log ) Uses Chillkat Free FTP ActiveX
- Delete them from your disk afterward
You can launch this process everyday and there will be no log that is older than a specified number of days on your server.
Requirement for this solution to work:
You can download the script here.
See the entire script in the full post.



Shout Box RSS Feed



