Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-02-12 06:42:50

Steve Castle
New Member
Registered: 2006-02-12
Posts: 6

Clean Mod Rewrite

I was searching through the plugins and saw that there was the ‘sgb_url_handler’, which is essentially what I am looking for, but it no longer works.

What I want to do is the following:

Turn the permalink into
http://www.domain.com/section/category1/category2/article-title.html

Of course, if there are no categories selected, it would not include any category in the address.

Thanks for the help in advance.

-Steve

Offline

#2 2006-02-12 07:34:37

Steve Castle
New Member
Registered: 2006-02-12
Posts: 6

Re: Clean Mod Rewrite

I would even be happy if I could get pointed to the right place to start as I am new with Textpattern.

Thanks

-Steve

Offline

#3 2006-02-12 13:02:46

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Clean Mod Rewrite

Did you actually try sgb_url_handler? Because it seems to have stopped working for some people, but not for all (it is still working for me in 4.0.3).
You could also have a look at gbp_faux_static.

Offline

#4 2006-02-12 14:49:14

Steve Castle
New Member
Registered: 2006-02-12
Posts: 6

Re: Clean Mod Rewrite

> doggiez wrote:

> Did you actually try sgb_url_handler? Because it seems to have stopped working for some people, but not for all (it is still working for me in 4.0.3).

I have tried it, but when I load my index page, I get the following error:
A problem occured while loading the plugin: sgb_url_handler -> User_Warning: Unable to include plugin “sgb_error_documents” on line 399

If it can be corrected, I’m willing to work with it.

> You could also have a look at gbp_faux_static.

I’ll take a look and see if this can fit my needs as well.

If anyone knows what other file(s) I have to modify besides .htaccess to manage my own rewritten url’s within the PHP code.

Thanks

-Steve

Offline

#5 2006-02-12 16:25:05

Steve Castle
New Member
Registered: 2006-02-12
Posts: 6

Re: Clean Mod Rewrite

Ok, I’ve gotten the error solved. It was actually looking for another plugin that was noto installed, so I edited to code.

Now, (also like before) there is a url in the permalink showing up like this:

http://www.domain.com/index.php/section/etc

How does one go about removing the “index.php/” from the permalink?[/s]

That problem has now been solved, real simple actually.

Another question:

How do we get both categories to appear in the URL (when the second is a subcat of the first)?
(http://www.domain.com/section/category/subcategory/title

-Steve

Last edited by Steve Castle (2006-02-12 16:36:29)

Offline

Board footer

Powered by FluxBB