Hi, I am new to this group so I hope posting this question is okay? If not, 
please let me know the correct protocol.

I have a node app that works perfectly on Heroku but not on A2Hosting nor 
on FastComet:

It is an express app using ejs.

The Routes are simply as follows:
//Root Route
app.get("/", function(req, res){ 

app.get("/contact", function(req, res){ 
    // res.send("You have reached the contact page"); 

app.get("/about", function(req, res){ 
    // res.send("You have reached the contact page"); 

I keep getting an error 503 on the contact and about routes but the initial 
index.ejs works just fine:

My .htaccess file is simply the following:
RewriteEngine On
RewriteRule ^$ [P,L] 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$$1 [P,L] 
DirectoryIndex views/index.ejs

The App works perfectly on my localhost as well as on Heroku. I have tried 
everything and cannot seem to come right with my links to contact.ejs and 

The tags are simply:
   <li><a href="/about">Samples</a> </li> 
   <li><a href="/contact">Contact</a> </li> 

The Index.ejs, contact.ejs and about.ejs are in a views folder.

This is the actual site on A2Hosting: http://www.digital-alchemy.solutions

And This is the site on Heroku which works perfectly: 

It really is a small app.

Any Help would be seriously appreciated.

Kind regards


Job board: http://jobs.nodejs.org/
New group rules: 
Old group rules: 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to