Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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…
Offline