?
Solved

I can't get eruby working on my godaddy hosted site. It might be an htaccess issue.

Posted on 2006-04-18
5
Medium Priority
?
246 Views
Last Modified: 2010-03-04
I just signed up for godaddy hosting. I can see files with the extension .html, and they are rendered correctly, but any file that ends .rhtml is displayed as straight text. I'm not too sure how to enable ruby (specifically eruby) but godaddy does offer rails hosting on its deluxe linux package, which I have, so I presumed eruby would work.

This may be an htaccess thing, or I may have to move directories, I'm not too sure.

I saved two identical files, and you can see them here: lonelyipod.com/test.rhtml lonelyipod.com/test.html

I have an .htaccess file in my root directory, but it is empty.

The winner of the points is the one who can help me get test.rhtml displaying properly.

thanks!

Reference info:
Go Daddy's hosting page: https://www.godaddy.com/gdshop/hosting/shared.asp?se=%2B&ci=260
0
Comment
Question by:stoniergrunow
  • 2
4 Comments
 
LVL 10

Expert Comment

by:sleep_furiously
ID: 16490375
If you have not already done so, check this page:

http://help.godaddy.com/article.php?article_id=1116&topic_id=266&&
0
 

Author Comment

by:stoniergrunow
ID: 16492302
Thanks - I have created a directory test using the godaddy cgi ruby tools, and within it a public directory, so my files are now at

lonelyipod.com/testroot.html ____________(doesn't interpret eruby)
lonelyipod.com/test.rhtml ______________(doesn't render html, thinks rhtml is a text file)
lonelyipod.com/test/public/test2.html _____(not visible - 404 page not found)

the text for the godaddy generated htaccess file is lonelyipod.com/test/.htaccess is

RewriteEngine On
RewriteRule !/public/dispatch.cgi  [F]

the /.htaccess file is still blank.

Still not too sure what to do.



0
 

Author Comment

by:stoniergrunow
ID: 16513666
This has been largely resolved. As I understand it, rhtml files can either be handled by a rails application or by using mod_ruby to allow eruby parsing of html. GoDaddy does not support eruby so single, stand-alone rhtml files (used much like .php files) do not work on their servers. Presumably a full rails app will work, but I haven't tried it.
0
 

Accepted Solution

by:
GranMod earned 0 total points
ID: 16546587
Closed, 500 points refunded.
GranMod
The Experts Exchange
Community Support Moderator of all Ages
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses
Course of the Month16 days, 18 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question