# Mixing Rails with Static Website?

**URL:** <https://www.ruby-forum.com/t/mixing-rails-with-static-website/140118>\
**Category:** Rails\
**Created:** [June 11, 2008, 1:39am UTC](https://www.ruby-forum.com/t/mixing-rails-with-static-website/140118 "2008-06-11T01:39:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [June 11, 2008, 1:39am UTC](https://www.ruby-forum.com/t/mixing-rails-with-static-website/140118/1 "2008-06-11T01:39:55Z")

</div>

I spent the last 10 years working hard to establish search engine  
ranking for my static website of which I’ll call [www.company.com](http://www.company.com). My  
ambition is to keep my static web pages ( to NOT lose my search engine  
positioning ) and run my Rails application around it.

When the user clicks on [www.company.com](http://www.company.com) they’ll be taken to the static  
index.html page which will have a link to ‘Try my Cool Software’.  
Clicking this will take them into the Rails app. I’m hoping that even  
though my index.html is in the public folder that when Mongrel sees an  
http request that it can handle, it’ll jump in and do its job.

Any ideas?

Thanks,

Kathleen

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [June 11, 2008, 2:24am UTC](https://www.ruby-forum.com/t/mixing-rails-with-static-website/140118/2 "2008-06-11T02:24:24Z")

</div>

That is exactly how it works out of the box. In fact, create a new  
rails app and you’ll see a static html file called index.html

On Jun 10, 4:39 pm, “removed\_email\_address@domain.invalid” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
