Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Static Publisher with seo-friendly urls


Go to End


1036 Views

Avatar
joelg

Community Member, 134 Posts

19 March 2011 at 12:11pm

Hi

I would like to use silverstripes static publisher methods to make my pages load faster. However, I don't want to have .html ending on my pages. I still would like to have my nice, seo friendly urls.

How can I accomplish this? Can I just leave out the html in _config.php like this:

//Object::add_extension("SiteTree", "FilesystemPublisher('cache/', 'html')");
Object::add_extension("SiteTree", "FilesystemPublisher('cache/', '')");