PDA

View Full Version : RoR URLS


jofalcon
06-13-2006, 01:07 AM
I have a quick question.

Is it possible to set my app to www.domain.com
instead of www.domain.com/app

any help will be very much appreciated.

ben_brown30
06-13-2006, 01:34 AM
Yes there are two ways in which you can do this.

1. Create a symbolic link to the public directory of the RoR project. The easiest way to do this is to have SSH access to your home space (contact Bluehost support asking for it with the last 4 digits of your credit card - plus you'll need to fax or email some photo ID).

2. Use your .htaccess file to redirect all requests. Do a search for .htaccess on this forum and you'll find plenty of posts on how to do this, or Google will provide loads more!

If you can share a little more information about your site e.g. where the files are placed so we know exactly what the app directory contains then I'm sure we'll be able to provide better help.

jofalcon
06-13-2006, 12:21 PM
Thanks for the quick response. I have SSH access to my site, and tried created symbolic link to the public_html directory, however it wasn't working properly. Instead it created link and just called it public. Any ideas?

jofalcon
06-13-2006, 10:30 PM
Figured out the answer to my own question.

To those who are trying to achieve this as well. Take your current public_html folder and either 1) delete it or 2) change the name. (I changed the name since I still have backup files, pictures, and junk). Then just create a symbolic link with the name public_html. Worked fine for me.

ben_brown30
06-14-2006, 01:41 AM
Figured out the answer to my own question.

To those who are trying to achieve this as well. Take your current public_html folder and either 1) delete it or 2) change the name. (I changed the name since I still have backup files, pictures, and junk). Then just create a symbolic link with the name public_html. Worked fine for me.

Yes that will work for your main domain, for an addon domain you'll have to put the symbolic link inside the public_html folder with the correct name for the addon domain.