How to make in Boonex the best URLs in the world?

I believe that the best URLs for Boonex's websites are short URLs like this:

FILES:

http://domain.com/files/1

http://domain.com/files/2

http://domain.com/files/3

, where 1\2\3 - ID of a file.

ARTICLES:

http://domain.com/articles/1

http://domain.com/articles/2

http://domain.com/articles/3

, where 1\2\3 - ID of an article.

Why these URLS are the best URLs ever? Editors\Webmasters of other internet resources can make BACK links to your website. Many editors\webmasters don't make backlinks to your website because of "BAD" (long, difficult etc) URLs like

http:/domain.com/boonex/modules/articles/The-best-Article-in-the-Wirld-bla-lalalalalallalalallaallalalla-3453454-35345435-2014-11-10

I prefer SHORT Urls and I get many FREE backlinks to my websites done with Wordoress. This function (short URL like domain.com/1 domain.com/2 is a built function in default Wordpress).

So, is it possible to make URLs short in Boonex system?

How can we make this with help .htaccess? Any .htaccess professionals can help me and other users?

Thx! 

Quote · 10 Nov 2014

You can use this solution to get rid of /m/ in the url:

http://www.boonex.com/forums/topic/Remove-the-m-directory-in-url-.htm

 

Then if you need numerical value instead of URI, you can try this "dirty" solution for Groups module (each module will need separate query):

CREATE TRIGGER bx_groups_uri_update BEFORE INSERT ON `bx_groups_main` FOR EACH ROW SET NEW.`uri` = (SELECT MAX(`id`) FROM `bx_groups_main`) + 1

It will assign numerical value to uri field (in most cases it will be the same value as id field).

Rules → http://www.boonex.com/terms
Quote · 11 Nov 2014

Thank you very much, Alex!

One more question: will this "dirty" solution available fo FUTURE articles automatically? Or its for existing files\groups etc. only?

You can use this solution to get rid of /m/ in the url:

http://www.boonex.com/forums/topic/Remove-the-m-directory-in-url-.htm

 

Then if you need numerical value instead of URI, you can try this "dirty" solution for Groups module (each module will need separate query):

CREATE TRIGGER bx_groups_uri_update BEFORE INSERT ON `bx_groups_main` FOR EACH ROW SET NEW.`uri` = (SELECT MAX(`id`) FROM `bx_groups_main`) + 1

It will assign numerical value to uri field (in most cases it will be the same value as id field).

 

Quote · 11 Nov 2014

It will work for future content only, existing content will stay as it is.

If you want to change url of existing content (this not recommended, since search engine will have to index new pages), run the following query:

UPDATE `bx_groups_main` SET `uri` = `id`;

This solution is for Groups module only, every module you want numerical IDs in - need similar query.

One more question: will this "dirty" solution available fo FUTURE articles automatically? Or its for existing files\groups etc. only?

 

Rules → http://www.boonex.com/terms
Quote · 17 Nov 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.