First off please forgive me if this has been asked a thousand times. I have searched google without any luck. Basically what I would like to do is output the url with an html extension. Maybe an example would help. If I have in my controller: def index some stuff end I would get something like http://mysite/index I would like to convert is somehow to http://mysite/index.html Is there a way to do this easily like with a rewrite rule in .htaccess or maybe some configuration in routes.rb ?
on 2006-03-07 01:20
on 2006-03-07 09:53
Am Montag, den 06.03.2006, 19:19 -0500 schrieb Blizzard Media: > > Is there a way to do this easily like with a rewrite rule in .htaccess > or maybe some configuration in routes.rb ? In your .htaccess file you can do: RewriteEngine On RewriteRule (.*).html $1 -- Norman Timmler http://blog.inlet-media.de