Remove the m directory in url.

I want to change the url like this (http://demo.boonex.com/m/photos/home/) to (http://demo.boonex.com/photos/home/).Videos , groups,groups and so on.

I chaged .htaccess in root directory.

RewriteRule ^m/(.*)$  modules/index.php?r=$1 [QSA,L]   -->>

RewriteRule ^photos/(.*)$  modules/index.php?r=photos [QSA,L]

And remove m/ in `sys_permalinks` with my sql。

After this,when I click 'upload' tutton in photos home,the page goes blank.

Before I changed .htaccess and my sql the page is OK.

I do not know where the problem is, who know how to fix it.Thank you very much!

Quote · 15 Jan 2013

I would assume you need something like this:

RewriteRule ^photos/(.*)$  modules/index.php?r=photos/$1 [QSA,L]

Rules → http://www.boonex.com/terms
Quote · 15 Jan 2013

Successful, thank you very much!

Quote · 15 Jan 2013

Cannot get this to work for blogs, pages timeline Any suggestions? 

Quote · 12 Feb 2013

 pages is another module? 

Cannot get this to work for blogs, pages timeline Any suggestions? 

 

www.tumundo247.com - www.rampletea.com - www.clasificadosnetwork.com
Quote · 12 Feb 2013

i would start with BxDolPageView.php or pageView.php

caredesign.net
Quote · 12 Feb 2013

Neither blogs or pages uses the m in the url.

If you want help you will need to state how you want the url to read. And it has to be unique.

If you expect to remove the word blogs from the url and make it yoursite.com/home instead of yoursite.com/blogs/home then you can't because yoursite.com/home will look like a profile request. There has to be something in the url that makes each section unique. Something that makes it different from a computers point of view. They are not humans. They can't think.




https://www.deanbassett.com
Quote · 12 Feb 2013

hola deano - hows it going today? From the way I understand it, I am guessing he wants domain.com/blogs/home

EDIT - I dont have blogs, but just looked at a site that does and thats how it is domain.com/blogs/home. So disregard what I just said - sorry.

caredesign.net
Quote · 12 Feb 2013

 

I would assume you need something like this:

RewriteRule ^photos/(.*)$  modules/index.php?r=photos/$1 [QSA,L]

 Thanks a lot! It worked for groups

Quote · 4 Nov 2014

out of curiosity, if anyone has done this so they get domain.com/events

what happens if someone tries to setup a profile called 'events'?

Quote · 12 Jun 2015

 

out of curiosity, if anyone has done this so they get domain.com/events

what happens if someone tries to setup a profile called 'events'?

 

It will go to the events page since the last line in the rewrite rules is for profiles. You will have to exclude words like events, photos, etc, so there won't be a conflict between profile names and modules.

Dedicated servers for as little as $32 (28 euro) - See http://denre.com for more information
Quote · 13 Jun 2015

This is  a very interested topic , why can't this be implemented in 7.2 and save us all the hassle lol

Thanks

Proud Hosted by Zarconia.net
Quote · 24 Jun 2015

 I'll second that 

This is  a very interested topic , why can't this be implemented in 7.2 and save us all the hassle lol

Thanks

 

Umar Haroon
Quote · 24 Jun 2015

Do we need to put this line

RewriteRule ^m/(.*)$  modules/index.php?r=$1 [QSA,L]   -->>

 in front of RewriteRule ^photos/(.*)$  modules/index.php?r=photos/$1 [QSA,L] ?  

 

Quote · 24 Jun 2015

Wordpress has a very nice system to enable site administrators to set the permalinks as they choose when installing the site. In addition there are plugins which manage the redirects when permalinks need to be changed later on.

It'd be nice for Dolphin sites to be so well cared for. ;)

Andrew.

Quote · 25 Jun 2015

doesnt seem to work on 7.2 for me

Quote · 19 Sep 2015

What is the use of having m? Why they added this in the URL?

Quote · 20 Sep 2015

I also want this 'm' removed from the URL.

 

Is there a solution for this?

Quote · 22 Feb 2017

That would be a wonderful idea for consideration, Annabel. Some search engines consider things less important the deeper they are in the site hierarchy. 

 

While we are dreaming, why not remove the word 'home' from all links to further shorten the url's? Example: blahblah.com/blog/home to blahblah.com/blog. Some kind of 'index dot whatever' page could pick it up from there.

 

Easier said than done, I know. I know. And not all of us are as clever as Itmer...

Quote · 24 Feb 2017

 

I also want this 'm' removed from the URL.
Is there a solution for this?

The first 2 posts of this topic is the solution.

Rules → http://www.boonex.com/terms
Quote · 25 Feb 2017

Thanks a lot!

Quote · 25 Feb 2017

I tried to implement this for the events module.

 

added to .htaccess :

 

RewriteRule ^m/(.*)$  modules/index.php?r=$1 [QSA,L]

RewriteRule ^events/(.*)$  modules/index.php?r=events/$1 [QSA,L]

 

Then removed the permalink from sys_permalinks

 

Nothing changed, the 'm' is still there in the url

Quote · 24 Mar 2017

All instructions in one place for Evens module:

1) Add the following line:

RewriteRule ^events/(.*)$  modules/index.php?r=events/$1 [QSA,L]

after this one:

RewriteRule ^m/(.*)$  modules/index.php?r=$1 [QSA,L]

in .htaccess file in your Dolphin root folder

2) Change a row in sys_permalinks table from:

m/events/

to:

events/

Here is ready SQL to change it:

UPDATE `sys_permalinks` SET `permalink` =  'events/' WHERE `permalink` = 'm/events/';

3) Clear DB cache

Rules → http://www.boonex.com/terms
Quote · 27 Mar 2017

Thanks Alex

Quote · 12 Apr 2017

AlexT, I followed your instructions step by step and I still get this result :

 

/modules/?r=events/home/

 

yes, I know, I just asked to leave out the 'm' :-)

 

But it should be /events

 

The same as in ads module where there's just /ads in the url

Quote · 12 Apr 2017

Try to check if permalinks for Events are enabled.

Rules → http://www.boonex.com/terms
Quote · 17 Apr 2017
 
 
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.