- 52
- Sphinn It!
Posted By: Hannah 79 days ago
Topic Type: News Story (Jump to http://seogadget.co.uk)
Category: SEO
Richard Baxter provides a fantastic example of what can happen when staging URLs are leaked, and provides a comprehensive list of checks and fixes to prevent this.
5 Comments



Comments
Great idea by
g1smdAddind PHP code to check the domain name and writing a noindex tag to the page. A nice easy fix I think.
Glad it was useful. Saved me a ton of work, and relieves me of one more thing that I don't have to think about.
I often like to design problems out.
Agreed - very nice comments g1smd and thanks for dropping by! Really appreciate your input.
@g1smd very useful tip that Ian. I've been using .htaccess on our development area but this sounds a much better option. Thx.
I also like to redirect using .htaccess as that fixes the URL to the right domain should anyone copy the URL from their browser, and paste it into the content of some other site as a link.
However, I always have the PHP option installed too. This acts as a backup in case the .htaccess file goes AWOL on a server move or somesuch. More likely, it helps if there is a URL combination that can access the site, but it is a combination that I am not aware of (usual things are bare IP address, IP address with folder name, wild-card sub-domains off the main domain, and both sub-domains and folders off the hosting company domain name), as it is easy to miss one if someone else has set the server up.