Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2008-01-06 12:02:10

bbr322
Member
Registered: 2008-01-04
Posts: 11

Re: [Resolved]Some permalinks work, but some not.

Thanks, but I didn’t enable gbp_permanent_links.

Offline

#14 2008-01-06 14:05:20

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

Re: [Resolved]Some permalinks work, but some not.

If it is your intention to keep the same URLs as you had in Blogger, I’m pretty sure there must be a way to redirect old URLs to new ones using rewrite rules or redirects in .htaccess. I’m not very good at it, but someone else might be able to help you out with this, if you can provide an example of an old URL and a new one.

Otherwise can you set Production status to Debugging and post a tag trace of the page that contains the (working and not working) permlinks?

Last edited by els (2008-01-06 14:44:17)

Offline

#15 2008-01-06 14:11:19

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: [Resolved]Some permalinks work, but some not.

bbr322

A little more information might help us out here. Could you post the content of your diagnostics please tab (with the level set to high) please?


Steve

Offline

#16 2008-01-06 17:58:05

bbr322
Member
Registered: 2008-01-04
Posts: 11

Re: [Resolved]Some permalinks work, but some not.

The permalinks format of Blogger is: “/year/month/title-like-this.html”
No “day” here, so I think there’s no easy way to redirect old url to new ones by mod_rewrite if I want “/year/month/day/title”. The only one permalinks format buildin by TXP can be used is “/title”.

However, my old blog has only 50+ posts, so rewrite “/\d{4}\/\d{2}\/[^\.]+\.html/” to a php script, then do redirect in this script might work. If I can’t find out any other way, I’ll try.

About that strange problem, I got “clean_url_test_failed” in the diagnostics page, what does that means?

mod_rewrite seems work fine, here’s log:

add path info postfix: E:/var/HTTP/blog/2007 -> E:/var/HTTP/blog/2007/09/18/say-bye-to-flickr.html
strip per-dir prefix: E:/var/HTTP/blog/2007/09/18/say-bye-to-flickr.html -> 2007/09/18/say-bye-to-flickr.html
applying pattern ‘^(.+)’ to uri ’2007/09/18/say-bye-to-flickr.html’
RewriteCond: input=‘E:/var/HTTP/blog/2007’ pattern=’-f’ => not-matched
RewriteCond: input=‘E:/var/HTTP/blog/2007’ pattern=’-d’ => not-matched
add path info postfix: E:/var/HTTP/blog/2007 -> E:/var/HTTP/blog/2007/09/18/say-bye-to-flickr.html
strip per-dir prefix: E:/var/HTTP/blog/2007/09/18/say-bye-to-flickr.html -> 2007/09/18/say-bye-to-flickr.html
applying pattern ‘^(.*)’ to uri ’2007/09/18/say-bye-to-flickr.html’
rewrite ’2007/09/18/say-bye-to-flickr.html’ -> ‘index.php’

In error.log of apache, I found out this:

client denied by server configuration: E:/var/HTTP/blog/2275c993320f490f6393507cd5f55e5d

The conf of apache on my desktop is not write by hand, and it might be too big to post here. Thought I can’t find any part about “deny”, but I think this should be problem reason.

Thanks everyone for reply.

Offline

#17 2008-01-07 06:31:48

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [Resolved]Some permalinks work, but some not.

It is simple enough to create a redirect in .htaccess. I would work, first, on getting the sans .html urls working.

In error.log of apache, I found out this…

Apache – “Client denied by server configuration” tips

Offline

Board footer

Powered by FluxBB