Tag Info

Hot answers tagged

10

Normally, you do not need any server just to view raw HTML files, even if they reference other files, CSS and JavaScript. Simply double click on any file and it will open with the default browser of your machine from the local file system. However you may need to check if your static content has no absolute references to other files or other resources ...


9

Since your site is static, one solution is to use CloudFlare, because it can still serve cached pages if your site goes down (with proper configuration). It will be transparent if there is an issue. And keep a copy of your site on your laptop or on a memory stick if you can't use your laptop. If all goes wrong, you will still able to finish your ...


4

Activate mod_rewrite, and put this in a .htaccess file or a <Directory> directive: RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteCond %{REQUEST_URI} !^apps/ RewriteRule (.*) apps/$1 What it does: The first three lines check if the requested URI refers to an actually existing file, ...


4

If the website is HTML and CSS only, You don't need a host. Just throw it on the USB stick that that you're going to use for the redundant WAMP environment and run it from whatever machine you plug it in to. If you're worried about losing the USB stick, the web host would be a suitable backup.


3

You can simply open the internet page locally and display it in your browser. If you even want to show a different domain name, you can use XAMPP to open a local webserver. Host your website there and point the domain to your localhost on your maschine by appending the following line to your hosts file on your system: 127.0.0.1 ...


2

You could host the static content using Amazon S3. See http://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html for a guide as to how. Basically you sign up for an AWS account, upload your website into S3, and can then access it via a url like <bucket-name>.s3-website-<AWS-region>.amazonaws.com. You can also create a custom domain for ...


2

If you are using Git for version control of your site... (not to judge... but you kinda should be if it's an important project!) You can host your entire website on Github's "project pages". (aka Github Pages) It's really simple to just git push your site code there. Basically you push to a branch called gh-pages and your site will automatically publish, ...


1

So many overly-complicated answers. The website is HTML and CSS only (no DB), and currently resides on my shared hosting account. You do not need Apache You do not need XAMP (or similar) You do not need cloudflare, dropbox or any other 3rd-party service. (github? for a presentation? please.) All you need is a portable storage device. USB key, external ...


1

Browsers offer to download files based on two headers: Content-Type Content-Disposition I use a command line tool called curl to check headers on a website. curl -s -D - 'http://example.com/' | head -n 20 If you don't want your pages to be downloaded, then the Content-Type should be set to text/html or text/html;charset=UTF-8 and there should be no ...


1

Broadband Outrages It's doable but one of the problems is that home connections are not as reliable or stable as you may think. DNS issues occur very regularly on home broadband as well as other problems, also your IP may change (Dynamic) and this causes all types of problems with domains. Dynamic IP If your IP changes then your going to need a Dyn ...


1

How do I set up cPanel so that I can "redirect" subdomain folio.site.com to my other locally hosted website? As you likely already suspect, this wouldn't really be a "redirect", it's pointing a subdomain to an IP address, which is done with an A record. A CNAME would be used to point to a hostname, not an IP address. To do this in cPanel, edit the DNS ...


1

I'm sorry to inform you, but your steve-t-green domain loads an Index of / and within it it's your website/ directory. Therefore to access your photo I added that directory in the url like this: http://steve-t-green.com/website/albums/1.jpg Not to mention it's a jpg, not a png. Also, you might want to configure the apache/conf/httpd.conf file and add ...


1

Or, big or here, you could work everything off of FTP. This may or may not provide you with what you need, but your reasoning behind wanting to bring your files/databases to multiple servers on multiple platforms was not explained. Here's an example: At my home I have my Windows PC. At work I have my OS X PC. XAMPP is installed on Windows. I have ...



Only top voted, non community-wiki answers of a minimum length are eligible