After a major load of 404 with some category and tag URL, I questioned on StackOverflow about my WordPress blog. My blog is in Unicode Bānglā. After a nice anatomy on the fact in Facebook1 with some CodeGeeks, we came to a solution for both 404 on Unicode characters and SEO for Unicode sites.
THE IDEA
Mr. Sarim Khan (the Gittu) suggested a nice solution for a URL:
- For category:
http://www.example.com/category/astronomy/জ্যোতির্বিজ্ঞান
- For posts:
http://www.example.com/%postid%/আমার-পোস্টটি-যে-বিষয়ে
For this case the article will browse with the preceding category /astronomy
, and will work for English SEO too. And the rest of the section /bānglā-slug
would work for Bānglā SEO, and with this method the 404 can be minimized to a great extent.
But for a nice URL with Bānglā contents, I can manage my post and page URL, when I'm writing my page or post. But for Bānglā tags, and categories, how can I achieve such a modified URL? How can I put a Bānglā and English tag/category (taxonomy) at a time?
REAL QUESTION
Currently I'm following http://domain/%postname%
. How can I rewrite my URL, so that I can achieve such a benefit of lesser 404 for Unicode URL, and also doesn't get down in SEO chase.
Desired URL is:
http://domain/%english-slug%/%bangla-slug%
And of course: Is that really possible?
1. Facebook thread image: I'm afraid, most of the discussion was in Bānglā.
http://www.prothom-alo.com/economy/article/55104/কোরবানির_পশুর_চামড়ার_দাম_নির্ধারণ
is a URL used by The Daily Prothom Alo - a popular Bangla Newspaper. It may be a different framework or CMS, I don't care, but it's recently done - I guess to make the site more SEO-friendly. Yes you are right I can put English slug by editing the Category/Tag, but what about posts? If I activate the%postname%
permalink it activates a/postname
for my post URL. How can I make it understand to put the post_id first and then with a slash my Bānglā slug. And when I'm writing a post, I'm...