3

I'm using the realurl extension to make nice urls, only they all end with the / char. How can I let them end like a .html file?

/path/to/page/

Would like to have:

/path/to/page.html

Tom
  • 1,547
  • 7
  • 27
  • 50

1 Answers1

6

In your realurl configuration file (usually typo3conf/realurl_conf.php1) there is a section fileName. In it there is a key defaultToHTMLsuffixOnPrev. Set it's value to 1. Should look somehow like this afterwards (generated by realurl autoconfig):

'fileName' =>
array(
    'defaultToHTMLsuffixOnPrev' => 1, // <-- Important part
    'acceptHTMLsuffix' => 1,
    'index' =>
    array(
        'print' =>
        array(
            'keyValues' =>
            array(
                'type' => 98,
            ),
        ),
    ),
),

1 If you used realurl autoconfiguration, the configuration file is generated to realurl_autoconf.php. Make sure to set the auto configuration format to plain PHP-code in the realurl-settings in the extension manager, then delete typo3conf/realurl_autoconf.php to trigger regeneration, and copy the regenerated file to typo3conf/realurl_conf.php.

Jost
  • 5,948
  • 8
  • 42
  • 72