by Shawn Hyde
17. May 2012 03:52
This method can be used to fix duplicate content errors and make it so google only indexes one version of your urls, which will prevent you from getting a negative modifiers.
In order to do this you have two options.
- Use the proper canonical tags, for example place the following code at the top of your website:
- Use the following script to automate the process and only allow lower case urls to be viewed on your site, create a global.asax file and place it in your site's main directory.
If you plan to use both methods be sure to use only lower case for your canonical tags or you will end up with problems.
3de40d80-813b-4035-a032-e2af2fdab2de|1|5.0
Tags: canonical tags, iis 7, iis 7.5, lowercase, uppercase, google, index, duplicate title tags, Webmaster Tools, duplicate content, fix
IIS | Code | How To Guides | Quick Tips
by Shawn Hyde
29. February 2012 02:29
Update the if error section to retry after waiting for 1000ms, then attempt the request again, for example replace:
with
by Shawn Hyde
29. February 2012 00:17
Here is a neat little trick you can use to target Safari and make it behave while fixing cross browser layouts. This method will allow you to keep a page valid and it will allow you to only target Safari.
First thing you want to do is use javascript to inject a css file for all browsers that support webkit with this code:
Now, like I stated above this will target all browsers that currently support webkit and add support for it in the future so you cannot rely on only this. So now you need to create the css file and add some code that is Safari specific by using the double # method. Some people will ask, why not just include the double # to begin with? And the simple answer is that it will cause your CSS not to validate.
Here is the example css code that will target only Safari
Enjoy!
by Shawn Hyde
12. October 2011 06:13
Drives with TLER enabled by default:
MOST drives with model numbers ending in the following will allow you to enable TLER using the WDTLER utility.
Drives that DO NOTallow you to enable TLER, model numbers ending in:
0c2542a8-246e-47f5-a45d-a8b78a751013|0|.0
Tags:
Quick Tips
by Shawn Hyde
13. September 2011 16:47
New Telemarketing scam for Google Bing Yahoo prompted me to write this quick blurb.
Prerecorded voice stating something like this:
We have an opening for first page placement in Google, this is a rare opportunity available today only so if you would like to take advantage if this press 1 now
You can easily get listed on Google by using adwords for a fee or by using the Google local listing service to add your business, which is free.
by Shawn Hyde
8. September 2011 09:37
Add the following line to your style.css file in your theme directory.
#content img { max-width:100%; height:auto; }
by Shawn Hyde
19. October 2010 16:39
In google type in :
site: *.domain.tld
74f3def5-9716-4d7a-a74f-4298c33fab0f|0|.0
Tags:
Quick Tips
by Shawn Hyde
1. August 2010 16:40
by Shawn Hyde
9. July 2010 16:42
This issue now has a hotfix however, if you don't want to take a performance hit that this hotfix causes then you can simply do the following to solve the problem with pdf files and IIS 7.5
- Open "IIS Manager" on your server
- Select your service instace
- Select "MIME Types" under IIS
- Select ".pdf" then click "edit"
- Chenge the MIME type from "application/pdf" to "application/octet-stream"
This will cause the web server to treat the file as a download instead of a pdf application. From IE8 pdf files will open as normal, in firefox it will first download the file in full then open it.
by Shawn Hyde
24. June 2010 16:42
This problem can occur two way, one is cause by the server not updateing your gateway routers arp tables. You can solve this problem by logging into your router and clearing the arp tables. for instace, on a cisco router your would do the following:
using serial or hyperterminal if available
- connect to your router
- password: (enter password)
- router> enable
- password: (enter password)
- router# clear arp
- router# write mem
- router# exit
done.
The other problem is caused when using Network Load Balancing (NLB) on windows 2008 / 2008 R2 Server
For more information on this issue use these links:
http://support.microsoft.com/kb/960916
http://blogs.technet.com/b/networking/archive/2009/01/15/unable-to-connect-to-windows-server-2008-nlb-virtual-ip-address-from-hosts-in-different-subnets-when-nlb-is-in-multicast-mode.aspx