Welcome Guest | Login

.htaccess for redirecting atom.xml to wordpress feed url

I have a WordPress blog published through Fantastico to a subdomain (call it mypage.me.com).  

I used to have a blogger blog at the same URL hosted elsewhere.  The blogger RSS feed was
http://mypage.me.com/atom.xml

This URL now gives a 404, since Wordpress publishes feeds at, among other places,
http://mypage.me.com/wp-rss2.php

The above according
http://codex.wordpress.org/WordPress_Feeds

I've set up the redirect recommended on the Wordpress website, by creating public_html/mypage/.htaccess, and placing within it

RewriteRule ^atom.xml(.*)? /wordpress/?feed=rss2 [QSA]

The atom.xml URL is still 404.  It doesn't seem to matter what I rewrite to, so I'm wondering whether the .htaccess file in public_html/mypage is even being read.  How can I check?  Thanks.

2008-01-11 01:31 PM

I could see that the Rewrite rule is in your public_html/.htaccess file and not in public_html/mypage/.htaccess file. Can you check it?

2008-01-11 02:45 PM

Thank you for your quick response, and I'm sorry for my own delay.  I actually have an .htaccess file in both places, with no indication that either is working.  Can you tell me both which file I should be focusing on, and how to make sure that the RewriteRules are being interpreted at all?  Many thanks.

2008-01-16 09:32 AM

You need to make the changes in "public_html/mypage/.htaccess". Thank you

2008-01-16 09:50 AM

HostingRails Support
Ok, so I'm putting the overall goal (redirecting my RSS url) on hold while I figure out just getting a single RewriteRule to work.  My public_html/mypage/.htaccess file now just has only this line:

RewriteRule ^index2.html(.*)? index.html [QSA]

If I'm understanding, this should mean that visiting
http://mypage.me.com/index2.html

Should show the same content as
http://mypage.me.com/index.html

It doesn't currently appear to do so.  Am I wrong about the config format, or is there a log file that I can scan for errors?  I'm still pretty confused.  Thanks!

2008-01-17 01:22 PM

You can view and follow the error logs that is updated under your cPanel control panel Error ogs section. This is where you'll get to see last 300 error logs thrown by your site.

2008-01-17 01:50 PM

OK, looking at that, with this .htaccess file in public_html/mypage/.htaccess:

RewriteRule ^index2.html(.*)? index.html [QSA]

If I try to access
http://mypage.me.com/index2.html

The error log says

[Mon Jan 28 10:20:40 2008] [error] [client 123.123.123.123] File does not exist: /home/mecom/public_html/mypage/index2.html

It appears that the RewriteRule is not being invoked at all.  How might that happen?

2008-01-28 10:23 AM

I've edited your .htaccess file now. Now the site is redirecting proprely. But I couldn't see index.html file under public_html/mypage directory. Also http://mypage.me.com/index.html is not working. Could you check again?

2008-01-28 11:13 AM


Hello Guest! In order to post you must be an active client with us, please log in or sign up today!