Forum Moderators: phranque
[edited by: jdMorgan at 12:09 am (utc) on April 17, 2007]
[edit reason] Example.com [/edit]
I have done some searching on this site and have been trying to internally rewrite the URL. This is the code that I came up with that does not work...
RewriteEngine on
RewriteBase /
RewriteRule ^domain\.rss$ http://www.example.com.com/feed/rss2/
[edited by: jdMorgan at 12:09 am (utc) on April 17, 2007]
[edit reason] Example.com [/edit]
RewriteEngine on
RewriteBase /
RewriteRule ^domain\.rss$ http://www.example.com/feed/rss2.rss
So I think I'm on the right track. Back to trying to get it working with WordPress.
[edited by: jdMorgan at 12:10 am (utc) on April 17, 2007]
[edit reason] Example.com [/edit]
I have WordPress setup with default Permalinks, so it is not doing any kind of rewriting. I added the code to my htaccess...
RewriteEngine on
RewriteBase /
RewriteRule ^domain\.rss$ http://www.example.com/wp-rss2.php
Does anyone have a suggestion on why this is not working? Is it because it's hitting a php script instead of a static page?
[edited by: jdMorgan at 12:11 am (utc) on April 17, 2007]
[edit reason] Example.com [/edit]
Unfortunately, I'm stumped. The only other things I can think of are that WP has installed an Alias or rewrite directive in your httpd.conf that is 'diverting' control away from your .htaccess file, or that some other capable-of-interfering module or function such as MultiViews or AcceptPathInfo is interfering...
[added] It *is* important that the rewrite works when the target is not an existing php file as you discovered, but I am still scratching my head trying to figure out why and exactly what that means. I can't identify the fault mechanism, but something is tickling in the back of my mind... [/added]
Jim
[edited by: jdMorgan at 12:05 am (utc) on April 17, 2007]
I did another little test... Instead of pointing to the WordPress php file that is generating the RSS feed, I pointed to another dynamic WordPress php file - /index.php
RewriteEngine on
RewriteBase /
RewriteRule ^domain\.rss$ http://www.domainname.com/index.php
I don't know if this helps narrow it down any further.