A little something about everything

internet marketing and website development made simple..

How to make google only look at lower case url for sites hosted on windows IIS Server, fixes duplicate title tags in Webmaster Tools error

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.

  1. Use the proper canonical tags, for example place the following code at the top of your website:
  2. 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.

Moving database from MS SQL 2000 to 2005 or 2008 | Error / User / Roles / Delete

In order to fix this bug you can simply run this command on the effected database after you have used the backup (sql2000) / restore sql2005/2008) or detach attach methods.

command to run:

 

Replace "dbusername" with the problem user account. both should be the same.

This will remove the ghost user from the sql 2000 server and replace it with the new user on your sql 2005 / 2008 server. Be sure to have the user created before running this command.

Errors associated with this are as follows:

"login name must be specified Database user"

"The database principal owns a schema in the database, and cannot be dropped"

"user group or role already exists in the current database"

"can't delete sql user in database"

How to create Custom SEO for each content page of the Community Server platform?

In four easy steps:

  1. Create a file in the "/"directory called siteurls_override.config
  2. Copy the Content folder in "\themes\theme-name\" and rename it the same as you made the folder name in the "path" field above. Go into this folder and name it what ever you entered for the "page" field above. (this allows some added SEO by url name also.
  3. open the .aspx file in the "themes\theme-name\foldername" and change the line from

    to
  4. Go to Themes\theme-name\Common\ and copy rename the master.MASTER file and rename it to (pagename).MASTER you can now open and edit the HTML for title and meta in this file.

*hint* it goes directly after this code:

SEO code should be in this format:

So in 4 simple steps you've made Community Server SEO Friendly for content pages!

Also keep in mind that Google no longer looks at keywords and only lightly at meta description now. You should focus on the content of your site and keep in mind that the SEO code only helps your page position if it matches the rest of your page content.