ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

RSS Feed template and 404 Not Found

September 04, 2013 12:00pm

Subscribe [1]
  • #1 / Sep 04, 2013 12:00pm

    CMG Dev

    28 posts

    I have created RSS feed template (named as ‘feed’) to pull data from the blog channel and it looks like

    {preload_replace:master_channel_name="blog"}
        {exp:rss:feed channel="{master_channel_name}"}
        
        <?xml version="1.0" encoding="{encoding}"?>
        <rss versi
            xmlns:dc="http://purl.org/dc/elements/1.1/"
            xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
            xmlns:admin="http://webns.net/mvcb/"
            xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"         xmlns:c>
        
            <channel>
            
            <title><![CDATA[{channel_name}]]></title>
            <link>{channel_url}</link>
            <description>{channel_description}</description>
            <dc:language>{channel_language}</dc:language>
            <dc:creator>{email}</dc:creator>
            <dc:rights>Copyright {gmt_date format="%Y"}</dc:rights>
            <dc:date>{gmt_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
            <admin:generatorAgent rdf:resource="http://expressionengine.com/" >
            
        {exp:channel:entries channel="{master_channel_name}" limit="10" dynamic_start="on" disable="member_data|pagination"}
            <item>
              <title><![CDATA[{title}]]></title>
              <link>{title_permalink='site/index'}</link>
              <guid>{title_permalink='site/index'}#When:{gmt_entry_date format="%H:%i:%sZ"}</guid>
              <description><![CDATA[{summary}{body}]]></description>
              <dc:subject><![CDATA[{categories backspace="1"}{category_name}, {/categories}]]></dc:subject>
              <dc:date>{gmt_entry_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
            </item>
        {/exp:channel:entries}
            
            </channel>
        </rss>
        
        {/exp:rss:feed}

    but when I will refer browser to feed url like http://www.mydomain.com/feed I’m getting 404 Not Found.

    Any clue what can be missing?

    Thanks

  • #2 / Sep 04, 2013 2:34pm

    CMG Dev

    28 posts

    Well, found where was the main issue - Strict URLs. When used direct URL to the feed it works.

    http://www.mydomain.com/index.php/site/feed

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases