Sunday, November 20, 2011

SEO: Dash vs Underscore in URLs

They wonder whether you should use a hyphen in front of a script in the URL? This article provides a definitive answer

Now I have recently recommended a friend to change their website URL keyword1_keyword2 '(underscore) for 'key1-key2' (hyphen).

Why?

Since, according to Matt Cutts - a senior software engineer at Google - we recommend the use of scripts for Google.

According to his article, "Dashes vs. underscores", if you have a URL like 'keyword1_keyword2' Google will only return that page if the user searches for 'keyword1_keyword2' (which almost never happens).

If you have a URL like, and even "keyword1-keyword2" "key1 key2'This page can be returned for query 'key1', 'key2."

Forget not tell Googlebot and other robots of search engines that a page has permanently moved to submit by the addition of 301-redirects to your website. ".htaccess".

301 Redirect

For example:

Redirect 301 /old_directory http://www.example.com/new-directory
Redirect 301 /old_page.html http://www.example.com/new-page.html
Redirect 301 /old_directory/old_page.html http://www.example.com/new-directory/new-page.html
Note that the first URL contains only directories (if applicable) and the file name. The second URL is the area next to the directory (if any) and the file name. This is due to the diversion can refer to a file on another domain - it must be in the same field.

A word of warning
Be careful with the entries in the file. .htaccess. It is very sensitive. Entries must be correct, otherwise your site will be blocked. So before a change in the file. .htaccess file, make a copy of the file being edited. 1-2 Business changes at a time and make sure no errors in the entries.

Completion
So you have it. On the front, to highlight the URL, the Board is the clear winner.

1 comment:

  1. Thanks for providing this good informative post and i got a good knowledge from your blog, i think most of the peoples are get good benefited from this information.

    Joomla developer

    ReplyDelete