-1

I created a typeNum 777 with a RSS Feed. What I want to achieve now is that the feed can be reached via http://www.domain.com/feed.rss instead of http://www.domain.com/index.php?id=33&type=777

I have realurl installed but I don't seem to be able to configure it in this way. I have been trying for hours without progress. I tried the following in my realurl_conf.php:

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array(
'_DEFAULT' => array(
    'fileName' => array(
        'defaultToHTMLsuffixOnPrev' => 0,
        'acceptHTMLsuffix' => 1,
        'index' => array(
            'page.html' => array(
                'keyValues' => array(
                    'type' => 1,
                )
            ),
            'feed.rss' => array(
                'keyValues' => array(
                    'id' => 33,
                    'type' => 777
                )
            ),
            '_DEFAULT' => array(
                'keyValues' => array()
            ),
        ),
    ),
)

but when I use this an try domain.com/feed.rss I get redirected to the start page of my typo3 project. What am I missing?

Chi
  • 1,320
  • 1
  • 14
  • 48
  • I don't think that ``'id' => 33`` is valid, the page must be set in the url. i.e. ``http://domain.com/news/feed.rss`` where "news" is a page. Maybe it's easier to solve this with a rewrite rule in your .htaccess – Merec Aug 26 '15 at 13:43
  • I tried that too but I couldn't get it to work - do you have an example for me? how can I achieve that without typo3 / realurl screwing with my rewrite rule – Chi Aug 26 '15 at 13:50
  • ``RewriteRule ^feed.rss$ /index.php?id=33&type=777 [L]`` Put this before the rules that handles the index.php rewrite. I am unable to test right now. – Merec Aug 26 '15 at 13:59
  • I tried that, right after the RewriteEngine On line, and it doesn't work. If I call the feed.rss, I get a typo3 error: File "feed.rss" was not found – Chi Aug 26 '15 at 14:10

1 Answers1

0

well, since I couldn't find an answer to my problem, I decided to go about it a little differently and settled for http://www.domain.com/rss/new-articles I did this via defining a preVars type ('rss' => 777). I posted a more detailed answer here: http://www.ophidia.net/insane/blog/?lang=en

Chi
  • 1,320
  • 1
  • 14
  • 48