Home > The Newbie Zone > Questions and Answers

Rackspace static webpage wouldn't load, but downloads index.php file instead (4)


12-17-2014 09:49 PM #1 jaguar team (Member)
Rackspace static webpage wouldn't load, but downloads index.php file instead

hi veterans I need a quick hand here after trying to follow zeno's post:
http://stmforum.com/forum/showthread...l=1#post190389

The only problem I'm having now is that after uploading the "generic business page" to rackspace, my URL just wouldn't work---instead of displaying a static webpage, my browser(tried both chrome and firefox) simply downloaded that index.php file to my computer.

Here's the conversation between tech support and myself:

Jan Sergei S: Thank you for reaching out to Rackspace Cloud Support! How may I help you?
You: hi there, just got a quick question
Jan Sergei S: Okay, proceed
You: I uploaded a few small files to test a static webpage and here's the URL: http://blahblahblah.r80.cf1.rackcdn.com/index.php
You: but when i tried to access that URL, instead of displaying a webpage,
You: it started to download that index.php file
You: why's that?
Jan Sergei S: Index.php files pretty much pull the data from the folders on the web, it's not designed to show webpages-- it's designed to be the middleman between html files and the files in the directory
Jan Sergei S: what I would recommend is to create an HTML file to serve up, not an index.php file
You: would it work if I simply change the file name to index.html?
Jan Sergei S: i downloaded the file, let me take a look ...
Jan Sergei S: if you just change the filename to: index.html... all the customers will see is the text (like a blank webpage with times new roman writing on it)
Jan Sergei S: ...it won't even have the formatting attached to it.
Jan Sergei S: if you need a simple 1 page website, there's templates out there that you just literally change the copy inside
Jan Sergei S: you upload that html file to your cloudfiles - then it pull the images from another location (another server) so you dont have to host the images/layout for it
Jan Sergei S: furthermore, if you use the microsoft office suite.. the application "publisher" makes html files that you can use to serve up on the web
any help please?


12-17-2014 10:23 PM #2 budd (Member)

For rackspace cloud files you cant use php only jquery, html, css, html & javascript etc...

so create a template using CSS and HTML and Javascript etc for any scripts with files being .html


12-17-2014 10:46 PM #3 jaguar team (Member)

thanks budd, that's exactly what I thought.

what's funny is what the tech support guy said to me on live chat...I asked him if I can simply change the file name to index.html and his answer was...lol

I actually just did what I thought would work: change the file name to index.html and uploaded it to rackspace without making any other changes and now everything works perfectly fine. was the tech support guy drunk or what??


12-18-2014 08:47 AM #4 zeno (Administrator)

Who knows. But yeh, don't expect files with php extensions to serve from a CDN regardless of what's inside them.


Home > The Newbie Zone > Questions and Answers