Clean URLs

Please post answers on the most frequently asked questions about CMSimple
cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Clean URLs

Post by cmb » Thu Jun 06, 2013 11:17 am

Hi Gert,
Gert wrote:To create "user-friendly" or "clean" url's is not so easy, and I think it's not necessary at all, if you don't want to print the url's as deep link on your business card ;)
The clean URLs are not all about SEO. Compare http://blog.alexliebrecht.com/?Blog&rea ... D=3&page=1 with http://blog.alexliebrecht.com/blog/tagcloud-installiert. A human might be able to remember the latter URL, but probably not the first one. And typing them on a mobile device makes quite some difference.

A viable solution might be to add an optional slug field for each blog post, so the article could be accessed as http://blog.alexliebrecht.com/?Blog&rea ... nstalliert. This way mod_rewrite could be instructed to rewrite http://blog.alexliebrecht.com/blog/tagcloud-installiert to the former URL.
Gert wrote:The title of the entries will appear in the adress line and will be added to the title of the entry-page (<title> ... </title> in the sourcecode).
That's a nice improvement. :)

Christoph
Christoph M. Becker – Plugins for CMSimple_XH

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Clean URLs

Post by cmb » Thu Jun 06, 2013 12:33 pm

I have just noticed, that Comments_XH 3.1 (and probably other versions also) does not work with the clean URL solution. That's caused by the abbreviated form action of the comments form, which specifies the URL as #fragment only (which is perfectly fine basically). But unfortunately that conflicts with <base href="...">, which is required by the clean URL solution.

Quick fix: in plugins/comments/index.php replace lines 1521-1524 with:

Code: Select all

        global $su;
        $foot = '</div>
        <div id="comments_sent" class="comments_form">
        <div class="comments_form_in">
        <form action="'.$su.'#comments_sent" name="comments_form" method="post" enctype="multipart/form-data">
Christoph M. Becker – Plugins for CMSimple_XH

blogsash
Posts: 12
Joined: Thu Jun 06, 2013 2:50 am
Location: DE-Rostock
Contact:

Re: Clean URLs

Post by blogsash » Thu Jun 06, 2013 3:05 pm

Hello people,

many many thanks for your detailed descriptions and instructions. I have now reached that individual sub-pages in the blog have search engine friendly URLs. Excuse my bad English.

In the blog articles are still a long URL will be displayed. I'll leave it at that. It was important for me to know whether it is at all feasible. I really have followed all your instructions and tried to implement it.
All I want to do and will make it so.

Gert
Posts: 3078
Joined: Fri May 30, 2008 4:53 pm
Location: Berlin
Contact:

Re: Clean URLs

Post by Gert » Thu Jun 06, 2013 3:15 pm

Hello,

the plugin RealBlog 2.4 is released:

http://www.ge-webdesign.de/cmsimpleplug ... s/RealBlog

The package CMSimpleRealBlog 4.2 contains RealBlog 2.4 now:

http://www.cmsimple.org/?Downloads___CMSimpleRealBlog

Gert
Gert Ebersbach | CMSimple | Templates - Plugins - Services

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Clean URLs

Post by cmb » Thu Jun 06, 2013 3:39 pm

cmb wrote:
Gert wrote: The title of the entries will appear in the adress line and will be added to the title of the entry-page (<title> ... </title> in the sourcecode).
That's a nice improvement.
I hadn't read carefully enough :oops: IMO it is a nice improvement to have the heading of the blog article as <title>, but I don't see the point in having it in the URL, especially when the GET parameter does not matter (http://www.ge-webdesign.de/cmsimplereal ... =52&page=1 shows the same article). If any search engine considers parts of the query string for keywords, the search algorithm should be adjusted, as one can put nearly arbitrary keywords in a query string without any consequences regarding the displayed result (works even for plain HTML).
blogsash wrote:Excuse my bad English.
Well, we could have easily led this discussion in the German forum (all participants so far are native speakers). :)
Christoph M. Becker – Plugins for CMSimple_XH

Gert
Posts: 3078
Joined: Fri May 30, 2008 4:53 pm
Location: Berlin
Contact:

Re: Clean URLs

Post by Gert » Thu Jun 06, 2013 3:58 pm

Some things are "for eyes only" :lol:
Gert Ebersbach | CMSimple | Templates - Plugins - Services

blogsash
Posts: 12
Joined: Thu Jun 06, 2013 2:50 am
Location: DE-Rostock
Contact:

Re: Clean URLs

Post by blogsash » Thu Jun 06, 2013 4:15 pm

@cmb,

Good to know and I've got a few questions. So we can discuss in the German forum.

Maxim
Posts: 121
Joined: Thu Jun 13, 2013 6:52 am
Location: Запорожье
Contact:

Планируются обновления для "CMSimple_XH (CleanURLs)"?

Post by Maxim » Fri Jun 21, 2013 6:42 am

[ external image ] Здравствуйте
Ссылка
http://3-magi.net/downloads/CMSimple_XH ... anURLs.zip - устарела

Планируются обновления для "CMSimple_XH (CleanURLs)" и новая версия?

[ external image ] Hello
Link
http://3-magi.net/downloads/CMSimple_XH ... anURLs.zip - obsolete

It is planned to update to "CMSimple_XH (CleanURLs)" and a new version?
Last edited by Maxim on Tue Feb 04, 2014 6:08 am, edited 1 time in total.
Simple Hosting
Бедная, бросаемая бурею, безутешная!

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Clean URLs

Post by cmb » Fri Jun 21, 2013 12:26 pm

Hello Maxim,

well, actually I had not planned publishing updated releases of the clean URL variant of CMSimple_XH. Unfortunately clean URLs and CMSimple_XH are not yet the best "team". Many plugins will create the "classic" links (so the effort is partially useless); some plugins do not even work with the clean URLs at all (see the note about the Comments plugin above); and using transliteration of original characters to ASCII characters may easily result in clashes with some "built-in" pages and installed plugins (try naming a page "sitemap", "print" or "pagemanager" etc., and you'll see).

So currently the clean URLs are recommended for experienced users only (if at all), who are able to work around these issues. For those doing the necessary changes for updates themselves shouldn't be too hard.

However, I hope that CMSimple_XH and the plugins will work properly with clean URLs (optinally) in the future. But until then, there's much work to do; and the developers have to become aware that clean URLs are a reasonable improvement (it took me quite some time to realize that).

Christoph
Christoph M. Becker – Plugins for CMSimple_XH

Maxim
Posts: 121
Joined: Thu Jun 13, 2013 6:52 am
Location: Запорожье
Contact:

"Карта сайта", "Версия для печати", "Письмо администратору".

Post by Maxim » Wed Jun 26, 2013 12:10 pm

[ external image ] Здравствуйте
Создал сбору "CMSimple_XH_157_CleanURLs" и обновление "Update_CMSimple_XH_157_CleanURLs"
http://foxpro.maxim.zp.ua/saytostroenie ... -urls.html

Подскажите пожалуйста как всё же создать ЧПУ для "Карта сайта", "Версия для печати", "Письмо администратору", "Вход".
Не получилось русифицировать.

Как добавть ".html"?
http://mysite.com/Test_1/Test_2/Test_3.html

[ external image ] Hello
Created collection "CMSimple_XH_157_CleanURLs" and update "Update_CMSimple_XH_157_CleanURLs"
http://foxpro.maxim.zp.ua/saytostroenie ... -urls.html

Please tell me how to create CleanURLs to "Sitemap", "Print view", "Mailform", "Login".
Failed to Russify.

How to add ".html"?
http://mysite.com/Test_1/Test_2/Test_3.html
Last edited by Maxim on Wed Jan 20, 2016 6:32 am, edited 3 times in total.
Simple Hosting
Бедная, бросаемая бурею, безутешная!

Post Reply