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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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

Disabling .html extensions

Go to End

2 Posts   793 Views


Community Member, 23 Posts

17 November 2010 at 2:04am

I'm working on a Silverstripe site for somebody, they've installed the blog on their website and wanted me to do some styling and set it up. It's all done fine apart from the whole site uses .html file extensions, which is causing a problem on the blog, as when you click a tag or browse by date I get the following...

Which gives me a 404 Page not found.

If I take the .html out...
It works fine.

I've had a go trying to solve the problem with various attempts of writing an htaccess rewrite rule, such as the example below, but I'm not very experienced with these and none of my attempts were successful.
RewriteRule ^blog/(.*)\.html /blog/%1/

Can anyone help me?


Community Member, 23 Posts

19 November 2010 at 11:10pm

Is there anybody that can help me on this one? :(