How to end typo3 Page url with .html

Today I will show you how to make your page url with .html suffix.

Like from /path/to/page/ to /path/to/page.html

First go in your realurl configuration file. (Which is generally located at typo3conf/realurl_conf.php)
Here 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(
                                   'rss.xml' => array(
                                                'keyValues' => array(
                                                                     'type' => 9818,
                                                                     ),
                                                ),
                                   'print' => array(
                                              'keyValues' => array(
                                                                     'type' => 98,
                                                                     ),
                                                ),
                             ),
             ),

That's it for today lessons.

Come here after a few days. You will definitely find some new tips and trick on typo3.

For more information follow my blog.

You can also use my official typo3 Plugin for typo3 website integration at:

http://typo3.org/extensions/repository/view/fluidfluxtemplate

Thanks for visiting my blog. have a great day ahead. :)

Post a Comment

0 Comments