Jump to content

[Solved] Routing inconsistencies for Rails app


DeBoer

Recommended Posts

I have the following problem:

 

My domain is godeboer.com

I created a subdomain realty.godeboer.com which points to godeboer.com/realty

 

I then did a rails rewrite for realty.godeboer.com to point to godeboer.com:12260 so theoretically it should now be pointing at my railsapps/realty/public folder.

 

When typing realty.godeboer.com, I see the "Riding the rails" page which I expect.

However, if I type realty.godeboer.com/xxxxxxxxxxxxx the browser is looking in my www/realty folder for xxxxxxxxxxxx instead of railsapps/realty/public.

 

What can I change in order to get the desired behaviour of:

godeboer.com -> www/

realty.godeboer.com -> railsapps/realty/public/

whether a path/filename is specified or not

Edited by DeBoer
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...