Our Clients
Don't forget to check out clients and the projects we built with them.Case Studies
Check out our featured case studies, including project details, testimonials, screen shots and videos for clients such as KORA, BOC, My Ears, and Laing+Simmons.My Staging Server has Been Indexed in Google for my ASP.NET Website – Help!
We had this problem recently with a client who linked to their staging server before the site was live. Because the staging server had a separate IP from the live site, the staging server got indexed in Google instead of the domain.
The solution is to use a 301 redirect to make sure all requests for the staging server are permanently redirected on the HTTP request level. This is quite simple to do on the Apache webserver – you can simply add a redirect handle to your .htaccess file. However, if you’re on shared ASP .Net hosting (a.k.a. IIS) and you don’t have access to the IIS control panel this quickly becomes a pain. The solution is to check the referring domain on server event startup (i.e. before a session is initialised) using a global.asax operation. Here is a small C# script to add to your global.asax file which will allow you to perform this task.
if (Request.ServerVariables[“SERVER_NAME”].Contains(“Staging_Server_Name”))
{
Response.Status = “301 Moved Permanently”;
Response.AddHeader(“Location”, “Domain_Name”");
}
All new requests for your staging server will now be redirected to your domain. You might also like to submit a sitemap and “resubmission” request via the Google webmaster console.
Blog Categories
Blog Archive
Blog Terms
- test news0
- test0
- nuke0
- news nuke0
- youtube1
- wpf1
- website marketing1
- website design1
- web.config1
- web 2.01
- viral marketing1
- Viral Advertising1
- video1
- usage1
- twitter search1
- Twitpic1
- triple j1
- trending topics1
- tobacco1
- tenders1
- Sydney1
- stagin1
- spell checking1
- spell1
- sound1
- social search1
- social bookmarks1
- social1
- SideWiki1
- share1
- server1
- SEO Sydney1
- SEM1
- security1
- search twitter1
- search facebook1
- search engines1
- search engine marketing1
- redirect1
- real time search1
- radio1
- Punky Brewster1
- Projects1
- posts1
- plug-ins1
- pick colours1
- Picasa1
- php1
- photoshop1
- Photobucket1
- patent1
- outlook1
- online trends1
- online marketing1
- online1
- nsw1
- nominated1
- newsletters1
- networks1
- networking1
- Meta1
- Merger1
- media optimisation1
- markup1
- kuler1
- kora1
- Keywords1
- iPad1
- interview1
- indexing1
- index1
- image1
- iis1
- html 51
- html1
- Halloween1
- government1
- Google Social Search1
- global.asax1
- geek1
- FourSquare1
- Flickr1
- fixing1
- fix1
- errors1
- email1
- dropico1
- drop and drag1
- digital marketing1
- digital agency1
- demonz update1
- costumes1
- cool1
- colour1
- color1
- cms1
- checking1
- cakephp1
- c#1
- boc1
- blogs1
- Bebo1
- awards1
- avcal1
- asp1
- approved1
- applications1
- Apple1
- aimia1
- agency1
- 3d1
- 3011
- .net1
- web development2
- Web Design2
- web2
- social media marketing2
- SMM2
- search engine optimisation2
- myears2
- audio2
- yahoo3
- windows server 20083
- web developers3
- twitter3
- Social Media Optimisation3
- sme3
- small business3
- optimization3
- myspace3
- mobile3
- marketing3
- flash3
- design3
- bing3
- SMO5
- SEO5
- Search Engine5
- optimisation5
- facebook5
- microsoft6
- Google7
- social media11
- development25
- website26
- news36