Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#145 2007-01-06 16:31:10

graeme
Plugin Author
Registered: 2004-06-21
Posts: 337
Website

Re: gbp_permanent_links

Andrew wrote:

Looks like this plugin is returning false positives for non-existent URLs. This is pretty critical for things such as Google Webmaster Tools, which requires 404s to return 404/Not Found, not 200/OK. I would classify this bug as critical, since Google (and other services of its kind) require proper header responses to ensure ownership and provide site diagnostics.

<snip>

Looks to me like a problem with regular expression matching. Perhaps the existing regular expression rules need more refinement? (that’s my best guess)

You were correct that is was a regular expression problem. gbp_permanent_links v0.11.564 fixes the problem – apart from one example you gave; www.example.com/1 is actually page 1 of the front page article list.

Thanks.

Offline

#146 2007-01-06 16:44:08

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: gbp_permanent_links

I’ll test it out, thanks :)

Offline

#147 2007-01-06 16:46:22

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: gbp_permanent_links

Hm… now my article contents are entirely empty :-/ Title isn’t getting parsed out at all, etc. Homepage works, inner pages don’t. Rolling back to v0.11.552

Last edited by Andrew (2007-01-06 16:52:41)

Offline

#148 2007-01-06 17:04:36

graeme
Plugin Author
Registered: 2004-06-21
Posts: 337
Website

Re: gbp_permanent_links

Andrew wrote:

Hm… now my article contents are entirely empty :-/ Title isn’t getting parsed out at all, etc. Homepage works, inner pages don’t. Rolling back to v0.11.552

Sorry! gbp_permanent_links v0.11.565

Offline

#149 2007-01-06 18:14:30

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: gbp_permanent_links

Looking good!

Offline

#150 2007-01-06 20:45:43

graeme
Plugin Author
Registered: 2004-06-21
Posts: 337
Website

Re: gbp_permanent_links

Andrew, here is v566 which improves the 404 handling even more. Now page numbers greater than the maximum number of pages from your <txp:article limit="4" /> tag will cause a 404 error. Textpattern never did this before. :)

Offline

#151 2007-01-06 21:02:50

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: gbp_permanent_links

:)

Offline

#152 2007-01-11 22:04:08

rockthenroll
Member
From: Jacksonville.FL
Registered: 2004-11-07
Posts: 14
Website

Re: gbp_permanent_links

Nice! Thank you so much for this plugin!


Travis Schmeisser // rockthenroll
rockthenroll.com

Offline

#153 2007-01-12 04:49:43

riot
Member
Registered: 2005-10-09
Posts: 22

Re: gbp_permanent_links

Hmm… I must have missed an important step here — I just installed both plugins, now what? Should my article links be permanent now? Does my default TXP archive method need to be clean or messy? Eitherway I get a 404

Offline

#154 2007-01-12 11:29:09

graeme
Plugin Author
Registered: 2004-06-21
Posts: 337
Website

Re: gbp_permanent_links

riot wrote:

Hmm… I must have missed an important step here — I just installed both plugins, now what? Should my article links be permanent now? Does my default TXP archive method need to be clean or messy? Eitherway I get a 404

Have you activated the plugins? Have you made a custom permanent link rule? You’ll see a new tab called ‘Permanent Links’ has been created the the Admin section of the Textpattern’s interface.

You can build rules from this tab. You can even have more than one rule, and define conditions on each rule so they are only used for certain sections/categories etc.

The default TXP archive method/permlink mode can be set to anything. Your custom rules will get used automatically.

Let me know if you run into any more trouble. And if you still get a 404 please could you send me some debugging info as described here.

Offline

#155 2007-01-12 15:51:47

riot
Member
Registered: 2005-10-09
Posts: 22

Re: gbp_permanent_links

Yep, activated and installed both plugins, I played around with permanent link rules but I left it as default and tried to get it to work

Here’s the site http://www.battleequip.com/

When I change and edit permanent link rules and refresh the site, my changes are reflected in the link, yet when I click on them I get a 404 — I have not touched Conditions or Destinations tabs. I set TXP to Debug mode and here is what was outputted: Download

Offline

#156 2007-01-16 18:48:31

sthmtc
Member
From: CGN, GER
Registered: 2005-01-17
Posts: 586
Website

Re: gbp_permanent_links

hi graeme, i’ve already asked you on the IM about this but i thought i should make it public so that it isnt lost or forgotten.
i wonder if it could be a possible feature of gbp_permanent_links to do this:

moving an article from one section to another while still keeping the link intact, in other words: checking if the article is found under a given URL and if not look for it in another location, if it matches bring up the article in the new section, if not -> 404.

i don’t know if that makes sense or if it is even possible but i thought it couldnt hurt to ask here :)

Offline

Board footer

Powered by FluxBB