Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#169 2005-06-21 16:24:33

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

Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time

> mrdale wrote:

> I was hoping to use sgb_errors to get past this.

Just follow the instructions in sgb’s last post, and it should be solved.

Offline

#170 2005-06-21 23:41:22

nicklas
Member
Registered: 2004-04-13
Posts: 12
Website

Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time

I found my problem — it was in the .htaccess-file.

Offline

#171 2005-06-22 00:46:09

sungodbiff
Archived Plugin Author
Registered: 2004-03-23
Posts: 57
Website

Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time

nicklas –

Glad you solved your problem, you got to it before I had a chance to poke around :)

All -

New versions are available at the usual places. Thanks to zem’s tip about <code>include_plugin()</code> you don’t need to merge the plugins as insturcted above.

You’ll need to make sure you’re running a recent version of RC3 as I don’t know when <code>include_plugin()</code> was introduced.

If the plugins don’t work for you, it may be because you’re TxP install doesn’t have <code>include_plugin()</code>. In that situation, the above instructions will work for you (just make sure you delete or comment out the second line in sgb_url_handlers: <code>include_plugin(‘sgb_error_documents’);</code>

- sgb

Offline

#172 2005-06-22 05:41:22

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time

sgb, that’s excellent. Almost everything works as intended.

I’ve got one site though that I use /section/category/title URLs and these don’t work although I put that sheme at the top of the list in the plugin code. The browser keeps requesting the page but nothing happens.

Offline

#173 2005-06-22 06:53:54

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time

I just noticed that the problem only occurs in “exact” mode. Firefox send an error message that the time for redirects has exspired (this is my translation of the German message).

In “best” mode it works. Any ideas, sgb?

Offline

#174 2005-06-22 08:22:49

rossharvey
Member
From: Earth. Sometimes.
Registered: 2005-03-16
Posts: 233
Website

Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time

My apologies for the following ‘newbie’ question, as I do not have much exerience with TP.

Is this basically a more funtional version of zem_rewrite? I <em>think</em> my host has mod_rewrite disabled; if I assumed correctly, this plugin will let me use clean URL’s regardless of this?

Thanks.

Offline

#175 2005-06-22 10:56:33

ubernostrum
Member
From: Lawrence, KS
Registered: 2004-05-05
Posts: 238
Website

Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time

Any chance of getting additions to sgb_error_documents for HTTP 403 and 410?


You cooin’ with my bird?

Offline

#176 2005-06-22 14:10:25

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

Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time

> sungodbiff wrote:

> New versions are available at the usual places. Thanks to zem’s tip about <code>include_plugin()</code> you don’t need to merge the plugins as insturcted above.

Thanks, working perfectly!

Offline

#177 2005-06-22 14:59:48

sungodbiff
Archived Plugin Author
Registered: 2004-03-23
Posts: 57
Website

Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time

> andreas wrote:

> I just noticed that the problem only occurs in “exact” mode. Firefox send an error message that the time for redirects has exspired (this is my translation of the German message). In “best” mode it works. Any ideas, sgb?

Andreas –

Is it occuring on specific articles or every article? I’ve got it working on my site <a href=“http://mighthitgold.net/journal/txp/sgb_url_handler”>http://mighthitgold.net/journal/txp/sgb_url_handler</a> will 301 you to http://mighthitgold.net/journal/sgb_url_handler. If it’s occuring on specific articles it may have to do with the exception handling code.

We’ll figure it out.

- sgb

Last edited by sungodbiff (2005-06-22 23:08:34)

Offline

#178 2005-06-22 15:15:59

sungodbiff
Archived Plugin Author
Registered: 2004-03-23
Posts: 57
Website

Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time

> BlueMamba wrote:

> My apologies for the following ‘newbie’ question, as I do not have much exerience with TP. Is this basically a more funtional version of zem_rewrite? I <em>think</em> my host has mod_rewrite disabled; if I assumed correctly, this plugin will let me use clean URL’s regardless of this?

BlueMamba -

Both plugins are similar.

sgb_url_handler can accept clean-URLs in the format http://example.com/index.php/journal/category/title (notice the index.php), this mode hasn’t recieved a lot of attention. I’ll write up a little bit about tonight after I get off work.

- sgb

Offline

#179 2005-06-22 15:24:44

sungodbiff
Archived Plugin Author
Registered: 2004-03-23
Posts: 57
Website

Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time

> ubernostrum wrote:

> Any chance of getting additions to sgb_error_documents for HTTP 403 and 410?

ubernostrum –

sgb_error_documents supports 403s but you need to hook into it (sgb_url_handler doesn’t do any authentication stuff). Adding support for 410s would be really easy, but again you’d have to hook your authentication code into it.

How are you generating 403/410s?

- sgb

Offline

#180 2005-06-22 17:10:49

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time

sgb, it’s a bit weird.

I have section/category/title URLs on most of my site. With the current version of sgb_url_handler the articles in my webdesign section don’t show up and the browser is in an endless loop of requests.

In my blog section, the wrong articles turn up even though the titles match exactly the rigth article in the db. In addition, the section and category homepages don’t work anymore.

So now I’m back to version 0.1.3 which gave me the least trouble. My ideal solution would be that the plugin redirects (301) URLs from the Feed (which only does section/title) to the correct section/category/title.

I have to say, that I tweaked my pages heavily to make them in to section and category home pages, so I’m not sure where exactly the problem might be. I use mic_permlink for most of my URLs.

Offline

Board footer

Powered by FluxBB