Hi, i’ve a little app which is working without problems, but i’ve a
little annoyance. I’m using the cool rest methods, like users_url, but
when i do this the result is www.domain.com/public/users, how can i
remove the “/public” string to get just www.domain.com/users ?
The other question is about htaccess, what do set in there? do you use
just the one in the public folder or do you put one also in the root
project folder? I’ve my project in the http_public (i’m using a shared
hosting for now), and now i’ve an htaccess which redirects every
requests to the public folder, but in this way i can’t have any other
directories in the root, but i’ve to put them in the rails public
folder.
folder.
You may want to set up your DocumentRoot to be the public/ directory.
Yours,
Tom
Hi, i’ve tried to set DocumentRoot public/
the temporally index.html page has been showed correctly, but when i try
something which use rails like domain.com/other/home doesn’t work: 500
internal server error from apache.
How have to set the .htaccess? one .htaccess in the root folder with
just DocumentRoot public/ and another .htaccess in the public folder
with the standard rails .htaccess, or just one .htaccess in the root
with everything in there?
Thanks
Hi, i’ve tried to set DocumentRoot public/
the temporally index.html page has been showed correctly, but when i try
something which use rails like domain.com/other/home doesn’t work: 500
internal server error from apache.
Hi, what said [development|production].log?(when show error 500)
Is it possible to do it using the .htaccess file? Because I don’t have
any access to the virtual host configuration, but only to the .htaccess
(and I can’t change hosting for now )
Another solution can be put a symlink from rails_root/public to
/home/dom1/public_html/domain.com or specify rails_root/public as domain
directory.
Is it possible to do it using the .htaccess file? Because I don’t have
any access to the virtual host configuration, but only to the .htaccess
(and I can’t change hosting for now )