Recent Topics

1 Apr 02, 2007 18:30    

My b2evolution Version: 1.8.x

I've looked at this so many times that it hurts, it also seems that some of the old posts have been deemed out of date for newer versions. Anyway, for programmer novices like myself can someone please explain the step by step for changing the URLs for categories?

My site: http://www.executivefraud.com/
Stub file: fraudblog.php
.htaccess location = publichtml/executivefraud/
static file = ? is that same as stub?

Current category link is:
http://www.executivefraud.com/fraudblog.php?cat=35
would like it to be
http://www.executivefraud.com/fraudblog/Accounting_Scandal

Any thoughts? I'm to the point that I would be happy to throw some bucks to someone if they would just mod it for me but I'm also happy to learn if someone has some patience. Thanks

Shawn

2 Apr 02, 2007 18:36

sccshawn1983 wrote:

My b2evolution Version: 1.8.x

static file = ? is that same as stub?

A static file is not the same as a stub file. You can generate a static file (html) in the backoffice and tell .htaccess to use the .html rather than the _main.php. This gives a time advantage when the .php file needs to generate a lot of items.

3 Apr 02, 2007 18:42

Rename froudblog.php (the stub file) to Account_Scandal.php. Put this stub in the http://www.executivefraud.com directory (probably something like the www folder on your server) and tell the blog you are using another stub file (in the backoffice go to Blogsettings)

Good luck

4 Apr 03, 2007 01:25

I think I'm getting what you are saying to some degree but then how do you manage all the different stub files.....fraudblog.php is my main one....then i want fraudblog/category_name
each category will have several different articles name_article_etc

Where do I need to change things so that the categories don't come up...

fraudblog.php?cat=35

5 Apr 03, 2007 01:29

OK, I didn't read properly: you want the fraudblog in between. That's possible: move all your stubfiles to the subdirectory /fraudblog and next tell the backoffice where you have put them.

6 Apr 03, 2007 02:48

Dumb question....how do you tell the backoffice to go to the stub instead of the category? I realize how to do it for the main stub but when you get to having a bunch, I'm a little lost

7 Apr 03, 2007 13:53

No the stub is 'just' a php file that is called by your browser. The php file directs the viewer to the correct blog (and or category).

8 Apr 06, 2007 07:54

I've been working with this for awhile now and am still having trouble....I have reduced the problem to an annoying yet possible fix of taking the category Accounting Scandal at:
http://www.executivefraud.com/Fraud_Blog.php?cat=35
and created a stub called
http://www.executivefraud.com/_Accounting_Scandal.php
Now both are working but I want when someone clicks on the category for it to go to the stub. How do I do that? I've tried redirects using .htaccess and have not had any luck.


Form is loading...