-
Permanent 301 Redirect with QueryString in IIS
-
If anyone's ever tried to move domain, you'll know its a pain. One way to make things a little easier is to provide an automatic 301 redirect from your old domain to your new one - this marks the new destination as a permanent change, and will generally be picked up by search engines.
IIS provides an easy way to do this - but it's not immediately obvious how to get it to forward querystrings too - for instance, if you wanted to forward developerfusion.com/show.aspx?id=20 to developerfusion.co.uk/show.aspx?id=20. Here's now! (This works in both IIS 5 and IIS 6)
- Go into the IIS site properties for the domain you're moving from. In the "Home Directory" tab, click the option "A redirection to a URL".
- In the Redirect to box, enter the domain you wish to move to (no trailing slash), plus $S$Q - for example, http://www.developerfusion.com$S$Q
- Next, check the options that state the client will be sent to "The exact URL entered above", and "A permanent redirection for this resource"
And that's it! Now, what does this $S$Q do? These are basically tags that IIS will automatically replace - $S will be replaced with the subdirectory location (such as /images/show.aspx) and $Q will be replaced with the querystring (such as ?id=30).
You might be wondering why we can't just use $Q, and then turn off "The exact URL entered above" - but in this situation, you get your domain name, then the query string, and *then* the subdirectory location - which probably isn't what you wanted! For more information, check out this.
-
UK Events on Developer Fusion
-
I've *finally* gotten around to creating a UK events listing on Developer Fusion - you can check it out at http://www.developerfusion.com/events/. If you know of any other upcoming UK events, then let me know. I haven't quite got the submission system up yet, but you can just drop me an email and I'll add them.
-
£16,000 worth of Microsoft software for only £199!
-
This isn't a new programme, but it seems a lot of people have never heard of this, so here goes....
If you are a *UK* organisation that sells Microsoft products, or provides solutions based on Microsoft products and technologies to third-party customers, then you can qualify to purchase the Microsoft Action Pack for £199. You just need to be a Registered Member of the Microsoft Partner Programme to subscribe (this process is free).
Some of the products included are
- Office Professional 2003 ( 10 licenses )
- Windows XP Pro ( 10 licenses )
- Info Path ( 10 licenses )
- SQL Server 2000 ( 10 CAL licenses )
- Exchange Server 2003 ( 10 CAL licenses )
- Windows Server 2003 Standard Edition ( 10 CAL licenses )
Well worth a look! (Though note these are not-for-distribution versions) .