making a new page http://sitename.com/page/game

when you make a new page it always have page then the name like  http://sitename.com/page/game is there any way you can make it  to  http://sitename.com/game

Quote · 2 Jun 2010

There is an entry in the .htaccess file to specify the directory structure of custom pages:

RewriteRule ^page/(.*)$  viewPage.php?ID=$1 [QSA,L]

Change it to whatever you like. Have fun.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 2 Jun 2010

There is an entry in the .htaccess file to specify the directory structure of custom pages:

RewriteRule ^page/(.*)$  viewPage.php?ID=$1 [QSA,L]

Change it to whatever you like. Have fun.

what do you change on it  this

Quote · 2 Jun 2010

There is an entry in the .htaccess file to specify the directory structure of custom pages:

RewriteRule ^page/(.*)$  viewPage.php?ID=$1 [QSA,L]

Change it to whatever you like. Have fun.

what do you change on it  this

For example, if you wanted it to remove the /page/ entry from the URI, you would change it to:

RewriteRule ^/(.*)$  viewPage.php?ID=$1 [QSA,L]

If you would like "page" to be something else, you would change it to:

RewriteRule ^myfatcatsays/(.*)$  viewPage.php?ID=$1 [QSA,L]

The possibilities are endless.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 2 Jun 2010

There is an entry in the .htaccess file to specify the directory structure of custom pages:

RewriteRule ^page/(.*)$  viewPage.php?ID=$1 [QSA,L]

Change it to whatever you like. Have fun.

what do you change on it  this

For example, if you wanted it to remove the /page/ entry from the URI, you would change it to:

RewriteRule ^/(.*)$  viewPage.php?ID=$1 [QSA,L]

If you would like "page" to be something else, you would change it to:

RewriteRule ^myfatcatsays/(.*)$  viewPage.php?ID=$1 [QSA,L]

The possibilities are endless.

i did the 1st one " to remove the /page/" i clean the Cache and made a new page i go on veiw page and got Profile not available for view

Quote · 2 Jun 2010

There is an entry in the .htaccess file to specify the directory structure of custom pages:

RewriteRule ^page/(.*)$  viewPage.php?ID=$1 [QSA,L]

Change it to whatever you like. Have fun.

what do you change on it  this

For example, if you wanted it to remove the /page/ entry from the URI, you would change it to:

RewriteRule ^/(.*)$  viewPage.php?ID=$1 [QSA,L]

If you would like "page" to be something else, you would change it to:

RewriteRule ^myfatcatsays/(.*)$  viewPage.php?ID=$1 [QSA,L]

The possibilities are endless.

i did the 1st one " to remove the /page/" i clean the Cache and made a new page i go on veiw page and got Profile not available for view

It seems it's conflicting with the RewriteRule for the displaying of profile pages. Try this: http://www.boonex.com/trac/dolphin/wiki/NewPageCreation

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 2 Jun 2010

There is an entry in the .htaccess file to specify the directory structure of custom pages:

RewriteRule ^page/(.*)$  viewPage.php?ID=$1 [QSA,L]

Change it to whatever you like. Have fun.

what do you change on it  this

For example, if you wanted it to remove the /page/ entry from the URI, you would change it to:

RewriteRule ^/(.*)$  viewPage.php?ID=$1 [QSA,L]

If you would like "page" to be something else, you would change it to:

RewriteRule ^myfatcatsays/(.*)$  viewPage.php?ID=$1 [QSA,L]

The possibilities are endless.

i did the 1st one " to remove the /page/" i clean the Cache and made a new page i go on veiw page and got Profile not available for view

It seems it's conflicting with the RewriteRule for the displaying of profile pages. Try this: http://www.boonex.com/trac/dolphin/wiki/NewPageCreation

OK it work but is there another way of changing it. like  change a file/line so it change automatic  when you make a new page then keep going back in .htaccess file to change it manual hope you understand and thanks

Quote · 2 Jun 2010

guess that's a no

Quote · 2 Jun 2010

i agree, it is a pain. the problem i'm having is adding a second page. i've followed these steps and created a new page, edited the .htaccess file with the new line and everything worked fine. but, when i added a another page and followed the same steps i'm having a problem. my second page was created but when you go to that page, it shows the title at the top of the first page i created.

is there something extra in the .htaccess file that needs to be added besides that one line when adding multiple new pages?

i'm getting frustrated. Yell

i'm tired
Quote · 2 Jun 2010

http://www.boonex.com/trac/dolphin/wiki/NewPageCreation

I attempted this a few times and couldnt get it to work.

Any help would be appreciated!

My signature can beat up your signature!
Quote · 8 Aug 2010

Hey all...I've been messing with this for a few hours and I was able to create as many pages as I wanted, and all worked perfectly.  The code I came up with is:

RewriteRule ^([^/.]+)/{0,1}$  viewPage.php?ID=$1 [QSA,L]

The solution listed here: http://www.boonex.com/trac/dolphin/wiki/NewPageCreation did NOT work for me at all.  Now, there is a conflict with Deanos tools module, but will ping him for a fix.  Otherwise, the code above does the trick for any new page I create without having to change anything further on the .htaccess file.

Hope this helps.

Jethro

Quote · 16 Aug 2010

This .htaccess change affects more than just my module. It affects others as well. Seems to affect many that do not use the m permalink. Boonex modules i have tested that also do not work with this change are.

Quotes
Shoutbox

I will of course fix mine. But there may be other 3 party modules that will also be affected by that change as well, so test before you use it.



https://www.deanbassett.com
Quote · 16 Aug 2010

Further analysis shows the solution provided by badass to be unacceptable.

If you go into Admin->Settings->Permalinks and turn off permalinks then pretty much every module becomes broken.

This solution is not acceptable because it is not compatible with the permalink system.

There has to be another way to compose a rewrite rule to accomplish the goal without breaking the permalink system. It's just a matter of finding it.


https://www.deanbassett.com
Quote · 16 Aug 2010

Well that's disappointing Undecided Thanks for checking Dean....I guess that "page" will be in my links whether I like it or not.

Jethro

Quote · 16 Aug 2010

I found the solution a while ago, and decided it best that I provide the solution on my thread here.  Super easy fix:

In your .htaccess file in the root folder of your Dolphin installation, find:

<IfModule mod_rewrite.c>
RewriteEngine on

Add the following code after:

RewriteRule ^newpage$  viewPage.php?ID=newpage [QSA,L]

Note:  "newpage" is the page name you assigned when creating the new pages.

Hope this helps any of you.

Jethro

Newpage.jpg · 124.7K · 78 views
Quote · 8 Jan 2011

Thx much.

 

Respectfully,

Jeff

Quote · 8 Jan 2011
 
 
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.