Recent Topics

1 Mar 17, 2006 01:31    

Before upgrading, I had permalinks like http://www.antropologi.info/blog/anthropology/index.php?p=1724

After upgrading
http://www.antropologi.info/blog/anthropology/anthropology.php?p=1724

This returned an 404 page not found error. After moving a copy of my stubfile anthropology.php to blog/anthropology/ the page is displayed.

But why can I no longer have permalinks like http://www.antropologi.info/blog/anthropology/index.php?p=1724 ?

Is there something I have to change?

Strangely enough, I now need three identical stubfiles. Before upgrading, I only needed one stubfile - I placed it in the blog/anthropology folder and called it index.php - This is no longer possible. I have place a copy in the root folder and name it something different as index.php is already in use. The same is the case with my other blogs.

2 Mar 17, 2006 13:48

Try this, move your stubfile to your root folder.

Then, in bliog settings, change your settings to "relative to baseurl" and leave the box empty, and "access type" to stub file, and put anthropology.php as the stub filename.

¥

3 Mar 17, 2006 13:57

¥åßßå wrote:

Then, in bliog settings, change your settings to "relative to baseurl" and leave the box empty¥

Thanks for your answer. Where do I find this setting? I couldn't find it

4 Mar 17, 2006 14:13

goto admin > blogs > blog name it's the settings under access type etc. (the setting names might be a tad different in dawn, but they should be easy to find)

¥

*edit*
Ooops, just looked at the demo version of dawn, you should only need to do the stub file bits ( relative to index.php is a phoenix thing).

6 Mar 17, 2006 14:34

lol, no, it was me working with the wrong version :p

Delete /anthropology/ from your "blog folder url" and make sure that anthropology.php is in /blog/ folder and (hopefully) it should all work.

¥

7 Mar 17, 2006 14:37

No it doesn't work. I would get a page not found error.

9 Mar 17, 2006 14:48

¥åßßå wrote:

http://www.antropologi.info/blog/anthropology.php works for me, but it looks like you still have "/anthropology/" in the "Blog Folder URL" field, you need to leave that empty.

¥

If I leave it empty, I will get this 404 page not found error.

The correct URL of the blog is http://www.antropologi.info/blog/anthropology/

After upgrading it changed to http://www.antropologi.info/blog/anthropology/anthropology.php or http://www.antropologi.info/blog/anthropology.php

10 Mar 17, 2006 14:53

Ok, try this then (sorry i don't use stub files in the normal way).

Leave /anthropology/ in the blog url field and change the stub filname to index.php (and obviously make sure that you have an index.php in the folder).

¥

11 Mar 17, 2006 14:59

This would work. But index.php is already in use for my blog aggregator.
http://www.antropologi.info/blog/

Furthermore, I have four blogs
http://www.antropologi.info/blog/anthropology
http://www.antropologi.info/blog/ethnologie
http://www.antropologi.info/blog/nyheter
http://www.antropologi.info/blog/cicilie (by another user)

It was no problem before upgrading.

There doesn't seem to be many people who use stub-files, strangely enough. Maybe I got something wrong. I used them to get nice and relevant URLs

12 Mar 17, 2006 15:01

Ok, you already have blogs/anthropology/index.php so, put the "/anthropology/" back into the Blog Folder Url and change your stub filname to "index.php" and see what happens.

¥

13 Mar 17, 2006 15:07

This happens (I've tried it before)

Cannot update, please correct these errors:

* This URL blog name / Stub name is already in use by another blog. Choose another name.

14 Mar 17, 2006 15:10

Lol, damn, never rains but it pours :p

Ok, try cheating, delete /anthropology/ from blug url, and change the stub file to /anthropology/index.php and see if it spits iyt's dummy out ;)

¥

15 Mar 17, 2006 15:13

That's the way it worked using 0.9.0.12

Now with Dawn I get this 404 error:

"b2evolution cannot resolve the requested URL."

16 Mar 17, 2006 15:14

Yeah, I saw that.

Ok, the last cheat I can think of is to use phpmyadmin to alter the stub filename in the database to index.php ...... although it'll probably spit it's dummy out with that as well.

¥

17 Mar 17, 2006 15:17

Nevertheless, thanks for your help!

18 Mar 17, 2006 15:20

Just a shame that none of it seems to work :p

¥

19 Mar 17, 2006 15:29

Scuse me for sticking my nose in here late in the game, but this shouldn't be this hard. Each stub needs to be unique, and each stub needs to point to one blog and one blog only. Therefore if you want blog #1 to point to index.php you simply tell it to. You can use a couple of methods including stubs, though for me I told it "default blog on index.php" and left the original index.php file intact. You can tell it "other blog through stub file" then delete the original index.php and copy stub_a.php as index.php and edit that file to point to the correct blog number.

The last bit there will apply to each and every blog you want through a stub file. You edit an existing stub file, change the blog number it calls for, and save it with your new stub file name. You then edit the blog and tell it "other blog through stub file", leave the "blog folder path" empty, and enter the stub file name in "URL blog name / stub name".

Should be very simple!

20 Mar 17, 2006 17:03

Thanks for your answer.
EdB wrote:

Therefore if you want blog #1 to point to index.php you simply tell it to. You can use a couple of methods including stubs, though for me I told it "default blog on index.php" and left the original index.php file intact.

blog/index.php is already in use (blog aggregator). I want it to point to blog/anthropology/index.php

EdB wrote:

You can tell it "other blog through stub file" then delete the original index.php and copy stub_a.php as index.php and edit that file to point to the correct blog number.

That's not possible when blog/index.php already is in use

EdB wrote:

The last bit there will apply to each and every blog you want through a stub file. You edit an existing stub file, change the blog number it calls for, and save it with your new stub file name. You then edit the blog and tell it "other blog through stub file", leave the "blog folder path" empty, and enter the stub file name in "URL blog name / stub name".

Should be very simple!

It worked in 0.9.0.12 but no longer in Dawn as explained above.

21 Mar 17, 2006 17:15

"nomad" wrote:

blog/index.php is already in use (blog aggregator). I want it to point to blog/anthropology/index.php

The only way I ever had a blog point to a folder was by having two seperate installations of b2evolution. In the main installation you point a 'blog' to folder/index.php and then you put the second installation in the folder with it's primary blog pointing to index.php. You post in the main blog via one admin URL and the foldered blog in the second admin URL.

22 Mar 17, 2006 17:24

"EdB" wrote:

nomad wrote:

blog/index.php is already in use (blog aggregator). I want it to point to blog/anthropology/index.php

The only way I ever had a blog point to a folder was by having two seperate installations of b2evolution. In the main installation you point a 'blog' to folder/index.php and then you put the second installation in the folder with it's primary blog pointing to index.php. You post in the main blog via one admin URL and the foldered blog in the second admin URL.

Why so complicated? One of the main strength of b2evo is its ability with multiple blogs in one installation. Otherwise you can use Wordpress. There is something which has gone wrong in the development of Dawn i guess as there were no such problems with the earlier version.

23 Mar 17, 2006 21:26

Do you really want "blog/anthropology/index.php"? Wouldn't you rather have "blog/anthropology" or "blog/anthropology/"?

I have a blog which uses stub files and I can get either of the following urls (as an example):

http://www.loganelementary.com/student/
http://www.loganelementary.com/student

But I can not use (and there's no reason for it):

http://www.loganelementary.com/student/index.php

I have set this up with the following blog settings in the backoffice:

Relative to baseurl: http://www.loganelementary.com/
Explicit reference to stub file (Advanced): Stub name: student
URL blog name: student
URL preview: http://www.loganelementary.com/student
[Note: notice that the stub name and blog name do not include .php or index.php]

Under the "Settings" tab in the backoffice make sure you have:

Use extra-path info: Checked
Permalink type: Post called up by its URL title (Recommended)

Finally, my student.php stub file is placed in my base directory (the same one that contains summary.php, multiblogs.php)

Please double check your settings, I think this has become much more confusing than it should be. Hopefully with the help of 10 or more of us we'll get it figured out. :D

24 Mar 18, 2006 00:42

I'm thinking you must have had a hack to have the illusion of folders in anything before .9.1 because b2evolution hasn't ever done that straight out of the box. Maybe something using .htaccess trickery? It's only because b2evolution doesn't (or didn't) do folders that I fell back on the 'second installation' method. Admittedly it's sloppy, and as far as I know something that 1.6 is beginning to address. There seem to be problems there though so it might not be something you want to persue. Something to do with clean permalinks not working right???

Anyway it really is a multiblog multiblogger app. It just doesn't make the other blogs appear to be in separate folders. Well, not TRULY look like folders that is to say. Nate's answer shows a way to make permalinks look like folders except there's no index file - and of course there is no actual folder.

25 Mar 19, 2006 01:59

EdB wrote:

I'm thinking you must have had a hack to have the illusion of folders in anything before .9.1 because b2evolution hasn't ever done that straight out of the box.

No, I didn't have a hack. I made a folder blog/anthropology/ and put the stub file in it,named it index.php.

In the blog settings I left the folder empty and as name of the stubfile I entered "anthropology/index.php"

That's the way it has worked since last summer.

26 Mar 19, 2006 02:04

Nate wrote:

Do you really want "blog/anthropology/index.php"? Wouldn't you rather have "blog/anthropology" or "blog/anthropology/"?

Because that's what it has been since last summer. If I'd use clean permalinks, all old links will be broken, I guess.

Nate wrote:

I have a blog which uses stub files and I can get either of the following urls (as an example):

http://www.loganelementary.com/student/
http://www.loganelementary.com/student

But I can not use (and there's no reason for it):

http://www.loganelementary.com/student/index.php

That's because you use clean permalinks (extra path info) feature which simulates folders that don't exist really while I have created real folders on my webspace.

27 Mar 19, 2006 03:14

I just installed 0.9.0.12 and have to disagree with you: b2evolution simply doesn't do folders!

http://www.wonderwinds.com/trial/

I created a folder called 'folder' then created a stub file in that folder for blog #2 called index.php. As you can see it does not work. Given that it used to work for you there must be some other factor at work here. Something that upgrading to 0.9.1 caused to no longer work, but not because the basic behavior of b2evolution changed. I've no idea what the change may have been especially since you had no hacks or .htaccess trickery on your side.

28 Mar 19, 2006 09:49

Strange. Did you use the same settings?

foldername left empty , name of the stubfile "foldername/index.php" ?

29 Mar 19, 2006 10:21

Yes to both, and I tried it with the clean permalinks option both checked and unchecked. The only file in the 'folder' folder is the stub file renamed as index.php, which happens to be a stub for blog #2.

The only thing I can think of, and it's a total guess, is that *something* about your server config is/was different in a way that an older version happened to do something that's always been on the 'feature request' list, but a newer version won't do. I've no idea how that could be though.

Way back in the day 'isaac' used to come up with all sorts of creative ways to get .htaccess to make URLs look like almost anything. I also seem to recall someone finally finding a way to hack something that seemed to make folders work, but it was a long time ago and I had already opted to use multiple installation before a thread finally hit upon that hack. I went the multi-installation way because I already had tons of traffic to a specific folder and felt it was easier than trying to get the linkage out there to re-link. For your purposes it's no good because, I assume, you've got all your posts in one database. I still don't know nothing about .htaccess!

Oh and I am pretty sure b2evolution will try to find the correct path to a post if the old path is something it knows (or knew?) how to deal with. In other words if you lose the 'foldered path' it might not mean the loss of linkage. MAYBE!!! Given that I don't understand how you were where you were and barely understand how b2evolution 'figures out' what post a visitor is looking for it's just an FYI ya know?

If you've no other need for that installation I'd like to delete it. One of the best ways to attract spammers is to link your installation in these forums :(

30 Mar 19, 2006 10:38

Yes, you can delete the installation. Thanks for your help!
My old links still work (after my workaround with using three identical stubfiles), so I can live with that although it's not optional. I hope future versions will support folders.

Oh, I just found this thread here, I'll have to take a look at it:

How to get rid of stub name in URL http://forums.b2evolution.net//viewtopic.php?t=2101&highlight=hack+folders

edit: they use the .htaccess method :-/

31 Mar 19, 2006 10:49

I'm pretty sure 1.6 is going in the direction you want, though I'm also pretty sure it's not exactly tip-top with regard to your issue. Well, maybe it's different domains that is the problem area, and I think it has something to do with clean URLs...


Form is loading...