How to shorten url? redirect or using rewrite rule

How can i shorten

https://url.com/m/articles/view/blablabla

to

https://url.com/blablabla

 

I may have read that this could cause a problem, because user profiles are named in that "way"

so this would be also ok

https://url.com/texts/blablabla

 

How can this be done? Is it a rewrite rule? If so, how should it be structured and in which file should it be saved?

 

Thank you for your time

Quote · 24 Apr 2018

Great question, hope someone here can provide a good answer 

Quote · 26 Apr 2018

one way maybe to edit htaccess file in root folder....

.htaccess

not sure about how to best write the rules for that.!?

Quote · 26 Apr 2018

You can edit the .htaccess in the root directory, but it's usually done to mask part of the address if your site resides in a sub-directory. 

http://mysite.com/mysite_location would display in the address bar as http://mysite.com

However, once a person goes to a profile, photo etc., the full path will probably be shown.

This is whar I used - It worked for me, but no guarantees!

RewriteEngine on
RewriteCond %{HTTP_HOST} mysite\.com [NC]
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^(.*)$ /mysite_location/$1 [L]
Quote · 27 Apr 2018
 
 
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.