Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2008-03-24 18:26:14
- eheil
- Member
- Registered: 2008-03-17
- Posts: 11
Redirect /feed to /rss or /atom
I’m moving a Wordpress blog over to TXP, and it’s all smooth except for the feed URL.
My mod-rewrite-fu is weak. Any suggestions on the correct way to add a permanent redirect from /feed(.*) to /rss$1 in the default TXP .htaccess file?
Offline
#2 2008-03-27 17:44:23
- eheil
- Member
- Registered: 2008-03-17
- Posts: 11
Re: Redirect /feed to /rss or /atom
OK, seriously, nobody has a clue on this?
I’ve been beating my head against the .htaccess for a long time here and I’ve got no damn clue.
According to my rewrite log, I’m successfully turning /feed into /rss inside the url rewriting engine… but then it gets turned into index.php and … I don’t know how txp gets the original url back again to parse it….
Offline
Re: Redirect /feed to /rss or /atom
did you try Redirect 301 /feed(.*) http://www2.domain.com/rss$1
?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#4 2008-03-27 18:00:13
- eheil
- Member
- Registered: 2008-03-17
- Posts: 11
Re: Redirect /feed to /rss or /atom
Redirect? I’ve been doing RewriteRules, not Redirects. I’ll give that a shot!
Offline
#5 2008-03-27 18:01:46
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Redirect /feed to /rss or /atom
Do you mean that you want to redirect /feed(and anything that might come after it) to just /rss? I had a similar thing a while ago, check if this post (adapted to your needs) can help you.
Offline
#6 2008-03-27 18:11:00
- eheil
- Member
- Registered: 2008-03-17
- Posts: 11
Re: Redirect /feed to /rss or /atom
No luck on the Redirect, I don’t know why — but the RewriteRule that Els suggested (mutatis mutandis) did the trick.
RewriteRule ^feed(.*)$ http://example.com/rss$1 [L,R=301]I’d tried things like that earlier but I must not have quite gotten the mojo right. That does it. THANK YOU!
Thanks very much for the help, colak and Els. I’m in business!
Offline
Pages: 1