Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 05:10:04 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Removing the /page  (Read 1386 times)
DBaker

Offline Offline

Posts: 2


« on: December 03, 2007, 11:55:41 PM »

Is it possible to remove the /page for example:

Instead of: site.com/pages/information.php

Have site.com/information.php?

I did a search for this, but couldn't find a solution...

Thanks in advanced,


Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« Reply #1 on: December 04, 2007, 05:27:16 AM »

Hello,

look at help page and read the doku:

http://help.websitebaker.org/pages/en/basic-docu/first-steps/adapting-default-settings.php

Matthias
Logged
DBaker

Offline Offline

Posts: 2


« Reply #2 on: December 04, 2007, 09:38:19 PM »

I just read it, and figured it out.

Thanks.
Logged
Dreamer

Offline Offline

Posts: 19



WWW
« Reply #3 on: February 10, 2008, 07:35:54 PM »


Hi, I've read the docs and see that it isn't too difficult to remove the /page directory on new installations, can anyone tell me how I would go about removing it from a site that already has about 6 pages?

Thanks in advance.
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« Reply #4 on: February 10, 2008, 08:16:26 PM »

Hello,

removing the /pages dir should not be done in WB 2.6.7, as this option is buggy in WB 2.6.7. We have fixed this is the upcoming WB 2.7. So better is to wait till WB 2.7 is official released.

No matter if WB 2.6.x or 2.7, setting pages dir to root can only be done if scripts has full write access to the root directory of your page. Not all hosters allow this. So ask first your hoster.

Second part on a page with existing pages is to move the content from the pages dir to the root without changing the ownership of all this files. This cannot be done with ftp, as moving with ftp changes the ownership. So for moving this also you should ask your hoster.

Third problem is, that you have to adapt in every pages file the path to config.php. This can also not be done with ftp, as the ftpuser is not the owner. You need to install a script (php explorer) wich allows you from serversite to edit the files.

Matthias
Logged
Dreamer

Offline Offline

Posts: 19



WWW
« Reply #5 on: February 10, 2008, 11:35:55 PM »


Thanks Matthias, I will wait until 2.7 so I don't break anything, or maybe not do it at all.

If I move the pages using Shell will that preserve the ownership?

Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« Reply #6 on: February 11, 2008, 06:54:28 AM »

Hello,

Quote
If I move the pages using Shell will that preserve the ownership?

if you have shell access to server, moving it there should preserve the ownership, yes.

Matthias
Logged
Dreamer

Offline Offline

Posts: 19



WWW
« Reply #7 on: February 11, 2008, 10:57:01 PM »


Cool, thanks, doesn't sound so difficult now that I thought about it for a bit Smiley

Logged
Dreamer

Offline Offline

Posts: 19



WWW
« Reply #8 on: February 20, 2008, 04:18:33 AM »


I went with plan B which is much simpler:
Rename the pages directory to something short and on topic (for an extra keyword  grin) .

Here's how to do it in case anyone else wants to rename their pages directory after it is already installed with content.

First duplicate the pages directory.
Rename the duplicate to new name.
Change the advanced settings pages to the new name.

Now to clean up and send your old page links to the new directory.
Use this in .htaccess and replace newdir with the new pages directory.

Code:
RewriteEngine on
RewriteRule ^pages/?(.*) /newdir/$1 [R=301,L]

Delete the old pages directory.
No down time required.

Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!