ailon's DevBlog: Development related stuff in my life

Slug Transliterator Extension for BlogEngine.NET

4/28/2008 3:17:51 PM

While I'm at it, I decided to write another extension for BlogEngine.NET. Those writing in English or in other Latin alphabet language only aren't probably familiar with this issue but everyone else is (I think).

When you create a post in Russian (for example) with title like "Привет, мир!" ("Hello, World!") you get automatic slug and (as a result your post link) looking like this:

/blog/post/2008/04/d09fd180d0b8d0b2d0b5d1822c-d0bcd0b8d180!.aspx

This doesn't look much better then the GUID version if you ask me. So, this is where SlugTransliterator comes to rescue. After this post passes through this extension this URL will look like this:

/blog/post/2008/04/Privet--mir!.aspx

A little better, don't you think? I don't know if it has any positive effect on SEO related aspects but it's definitely much more readable and rememberable (is this a word?).

By default SlugTransliterator is configured to transliterate from Russian (Cyrillic) and Lithuanian (Baltic) titles. But it can be configured to do any sort of char-to-char translation using Extension Manager.

Download

SlugTransliterator for BlogEngine.NET v.1.0 (2.5kb)

Installation

Just copy SlugTransliterator.cs to your App_Code/Extensions directory and configure in the admin section as you see fit.

Hope this helps someone. If not, I did it for myself anyway :P

kick it on DotNetKicks.com

P.S.: you may also want to use this extension to transliterate * symbol which results in bad URL in current (1.3) version of BE. Default configuration translates "*" to "-"

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Related posts

Comments

6/12/2008 8:02:27 AM

PoiSoN

Привет!

А если я хочу заменить "Ж" на "ZH"?

PoiSoN il

6/12/2008 9:34:20 AM

ailon

@PoiSoN: This is not a transliteration tool for text. It's just a simple way to get rid of the nasty encoded slug. However it's open source so you can always improve it Smile

ailon lt

11/10/2008 8:24:48 AM

Extensive SEO

I think just about anything is better then the nasty encoded slug.

Extensive SEO us

11/20/2008 7:24:40 AM

Busby SEO Test

can you explain to me what is a slug?pretty please!

Busby SEO Test us

12/12/2008 12:01:22 PM

Busby SEO Test

I think with SlugTransliterator for BlogEngine.NET v.1.0 can make optimal SEO

Busby SEO Test us

12/21/2008 5:00:14 PM

Busby SEO TEST

Slug transliteror i think is about changing the post name to be SEO Friendly.

Busby SEO TEST ua

12/24/2008 4:55:07 AM

Busby SEO Test Pinay

hi,
Guten Tag an Sie, schöne und wunderbare Post, vielen Dank für dieses großartige post-Überprüfung. haben einen schönen Tag.

Mit besten Grüßen,
Pinay

Busby SEO Test Pinay us

1/4/2009 11:06:09 PM

memulai bisnis online

does slug counts to make it to be SEO friendly?

memulai bisnis online us

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

1/7/2009 9:11:41 AM

Copyright © 2003 - 2009 Alan Mendelevich
Powered by BlogEngine.NET 1.3.1.0