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

1/8/2009 3:01:58 PM

Busby SEO Test

thanks for that link download.

Busby SEO Test us

1/10/2009 11:43:51 AM

Busby SEO Test

it's a great tool, thank you for sharing Smile

Busby SEO Test id

1/11/2009 1:50:00 AM

e-gitarren

This extension works great and hope it can be improve more.

e-gitarren us

1/15/2009 7:43:34 AM

Busby SEO Test Keyword for the New SEO 2009 Update

thanks for your nice post.

Busby SEO Test Keyword for the New SEO 2009 Update us

1/27/2009 10:53:31 PM

busby seo test case

great extention

busby seo test case us

2/3/2009 12:16:27 PM

Indianapolis Web Design

maybe could be done bu slug

Indianapolis Web Design us

2/10/2009 5:54:38 PM

kampanye damai pemilu indonesia 2009

great post, but must have much quota or bandwith

kampanye damai pemilu indonesia 2009 id

2/11/2009 7:51:51 AM

Free Service Manual

Thanks for the great reference post.

Free Service Manual us

2/18/2009 12:16:39 PM

Fix Registry Errors

Thanks for sharing your ideas, I really appreciate it.

Fix Registry Errors ph

2/19/2009 1:12:55 PM

Kampanye Damai Pemilu Indonesia 2009

Great reference post for BE users...
Thanks for sharing.

Kampanye Damai Pemilu Indonesia 2009

2/19/2009 6:44:36 PM

Domain Auction Script

How do you use this with other languages, like Japanese?

Domain Auction Script us

2/24/2009 10:08:36 AM

learning selling

wow thank you for sharing this!

learning selling us

3/24/2009 6:04:09 AM

gadgets in future

great to have more perspective..thanks

gadgets in future us

3/24/2009 10:32:21 AM

pinay my girl

Hi, i enjoy reading this website or blog. I got some ideas for my blog.

pinay my girl us

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