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!
|
I would assume you need something like this:
RewriteRule ^photos/(.*)$ modules/index.php?r=photos/$1 [QSA,L]
Rules → http://www.boonex.com/terms |
Successful, thank you very much! |
Cannot get this to work for blogs, pages timeline Any suggestions? |
pages is another module?
Cannot get this to work for blogs, pages timeline Any suggestions?
www.tumundo247.com - www.rampletea.com - www.clasificadosnetwork.com |
i would start with BxDolPageView.php or pageView.php caredesign.net |
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 |
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 |
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
|
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'?
|
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 |
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 |
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 |
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] ?
|
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.
|
doesnt seem to work on 7.2 for me |
What is the use of having m? Why they added this in the URL? |
I also want this 'm' removed from the URL.
Is there a solution for this?
|
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...
|
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 |
|
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
|
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 |
|
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
|
Try to check if permalinks for Events are enabled. Rules → http://www.boonex.com/terms |