Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jan 2012
    Location
    Hastings, East Sussex, UK
    Posts
    34
    Thanks
    21
    Thanked 0 Times in 0 Posts

    Unhappy HTML file downloads and runs locally?

    Hi

    I am trying to update my site and am testing it on my ISP's server.
    The home page works OK, when I either click on the navigation tab or even type in the URL to the test folder on my ISP site it downloads the file and runs locally. Consquently it does not run the stylesheet.

    I experimented by copying my template file and renaming it, which was the one I downloaded from Free CSS Template, on which I have based my new look site, but this does the same.

    It opens an Opening box shown below:


    Here is the file I am trying to open on the server:
    Code:
    <!DOCTYPE html>
    <!--
    Design by Free CSS Templates
    http://www.freecsstemplates.org
    Released for free under a Creative Commons Attribution 2.5 License
    
    Name       : Yosemite  
    Description: A two-column, fixed-width design with dark color scheme.
    Version    : 1.0
    Released   : 20091106-->
    
    <html>
    <head>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>1066 Cards 4U - Links</title>
    <link href="style.css" rel="stylesheet"/>
    </head>
    <body>
    <div id="wrapper">
    	<div id="menu">
    		<ul>
    			<li><a href="index.html">Home</a></li>
    			<li><a href="Links.html">Links</a></li>
    			<li><a href="Verse_Menu.html">Verses</a></li>
    			<li><a href="Techniques.html">Techniques</a></li>
    			<li><a href="News.html">News</a></li>
    			<li><a href="Gallery.html">Gallery</a></li>
    			<li><a href="contact.html">Contact</a></li>
    		</ul>
    	</div>
    	<!-- end #menu -->
    	<div id="header">
    		<div id="logo">
    			<h1><a href="http://www.1066cards4U.co.uk">1066 Cards 4U</a></h1>
    	</div>
    	</div>
    	
    	<!-- end #header -->
    	<div id="page">
    	<div id="page-bgtop">
    	<div id="page-bgbtm">
    		<div id="content">
    		 
    <br> 
    	
            
    		<div><img src="images/Earth.jpg" width="250" height="250" alt="" title="" border="0" /></div>
    		<br />
                <h1>Links</h1>
                <p><table style="width: 466px; height: 204px" class="ct01" cellspacing="0">  
    		<tbody>  
    		<tr>  
    		<td><h4>Company Name</h4></td>  
    		<td><h4>Web Address&nbsp;</h4></td></tr>  
    		<tr>  
    		<td><font size="4">&nbsp;Create and Craft</font></td>  
    		<td>  
    		<div><font size="4">&nbsp;</font><a href="http://www.createandcraft.tv/"><font size="4">http://www.createandcraft.tv/</font></a></div>  
    		</td></tr>  
    		<tr>  
    		<td><font size="4">&nbsp;CardCraftPlus</font></td>  
    		<td><font size="4">&nbsp;</font><a href="http://www.cardcraftplus.co.uk"><font size="4">http://www.cardcraftplus.co.uk</font></a></td></tr>  
    		<tr>  
    		<td><font size="4">&nbsp;Hobbycraft</font></td>  
    		<td><font size="4">&nbsp;</font><a href="http://www.hobbycraft.co.uk"><font size="4">http://www.hobbycraft.co.uk</font></a></td></tr>  
    		<tr>  
    		<td><font size="4">&nbsp;Liz Craft</font></td>
    		<td><font size="4">&nbsp;</font><a href="http://www.liz-craft.co.uk"><font size=”4”>http://www.liz-craft.co.uk</font></a></td></tr>
    
    		<td><font size="4">&nbsp;Country View Crafts</font></td>   
    		<td><font size="4">&nbsp;</font><a href="http://www.countryviewcrafts.co.uk"><font size=”4”>http://www.countryviewcrafts.co.uk</font></a></td></tr>
    		
    		<td><font size="4">&nbsp;Classy Crafts</font></td>   
    		<td><font size="4">&nbsp;</font><a href="http://www.classycrafts.co.uk"><font size=”4”>http://www.ClassyCrafts.co.uk</font></a></td></tr>
    		
    		<td><font size="4">&nbsp;Hunkydory Crafts</font></td>   
    		<td><font size="4">&nbsp;</font><a href="http://www.hunkydorycrafts.co.uk"><font size=”4”>http://www.hunkydorycrafts.co.uk</font></a></td></tr>
    		
    		<td><font size="4">&nbsp;Kanban </font></td>   
    		<td><font size="4">&nbsp;</font><a href="http://www.kanbancrafts.com/uk"><font size=”4”>http://www.kanbancrafts.com/uk</font></a></td></tr>
    		
    		</tbody>  
    		</table>
    </div>		 
    		</p>
    <div id="sidebar">
    			<ul>
    				<li>
    					<div id="search" >
    					<form method="get" action="http://1066cards4u.co.uk">
    						<div>
    							<input type="text" name="s" id="search-text" value="" />
    							<input type="submit" id="search-submit" value="GO" />
    						</div>
    					</form>
    					</div>
    					<div style="clear: both;">&nbsp;</div>
    				</li>
    				<li>
    					<h2>Aliquam tempus</h2>
    					<p>########</p>
    				</li>
    				<li>
    					<h2>Categories</h2>
    					<ul>
    						<li><a href="#">Aliquam libero</a></li>
    						<li><a href="#">Consectetuer adipiscing elit</a></li>
    						<li><a href="#">Metus aliquam pellentesque</a></li>
    						<li><a href="#">Suspendisse iaculis mauris</a></li>
    						<li><a href="#">Urnanet non molestie semper</a></li>
    						<li><a href="#">Proin gravida orci porttitor</a></li>
    					</ul>
    				</li>
    				<li>
    					<h2>Blogroll</h2>
    					<ul>
    						<li><a href="#">Aliquam libero</a></li>
    						<li><a href="#">Consectetuer adipiscing elit</a></li>
    						<li><a href="#">Metus aliquam pellentesque</a></li>
    						<li><a href="#">Suspendisse iaculis mauris</a></li>
    						<li><a href="#">Urnanet non molestie semper</a></li>
    						<li><a href="#">Proin gravida orci porttitor</a></li>
    					</ul>
    				</li>
    				<li>
    					<h2>Archives</h2>
    					<ul>
    						<li><a href="#">Aliquam libero</a></li>
    						<li><a href="#">Consectetuer adipiscing elit</a></li>
    						<li><a href="#">Metus aliquam pellentesque</a></li>
    						<li><a href="#">Suspendisse iaculis mauris</a></li>
    						<li><a href="#">Urnanet non molestie semper</a></li>
    						<li><a href="#">Proin gravida orci porttitor</a></li>
    					</ul>
    				</li>
    			</ul>
    		</div>
    <!-- end #sidebar -->
    		<div style="clear: both;">&nbsp;</div>
    	</div>
    	</div>
    	</div>
    <!-- end #page -->
    </div>
    
    <div id="footer">
    		<p>Copyright (c) 2008 Sitename.com. All rights reserved. Design by <a href="http://www.freecsstemplates.org/" rel="nofollow">FreeCSSTemplates.org</a>.</p>
    </div>
    <!-- end #footer -->
    </body>
    </html>
    Can anyone explain this unusual behaviour?

    You can test the behaviour by typing: www.1066cards4u.co.uk/test/
    Last edited by rockyhudson; 08-14-2013 at 06:03 PM. Reason: Additional information.

  • #2
    Regular Coder
    Join Date
    Mar 2013
    Posts
    262
    Thanks
    4
    Thanked 67 Times in 67 Posts
    Hm....try posting the contents of your .htaccess file.
    My signature :)

  • Users who have thanked ttkim for this post:

    rockyhudson (08-15-2013)

  • #3
    Senior Coder
    Join Date
    Sep 2010
    Posts
    2,185
    Thanks
    15
    Thanked 253 Times in 253 Posts
    You probably don't have the server set to handle .html files, it just servers them as files. The simplest solution would be to rename it to a .php file.
    Welcome to http://www.myphotowizard.net

    where you can edit images, make a photo calendar, add text to images, and do much more.


    When you know what you're doing it's called Engineering, when you don't know, it's called Research and Development. And you can always charge more for Research and Development.

  • #4
    New Coder
    Join Date
    Jan 2012
    Location
    Hastings, East Sussex, UK
    Posts
    34
    Thanks
    21
    Thanked 0 Times in 0 Posts
    Hi TTKIM & Dr Dos

    I had inadvertantly copied a htaccess file to this directory when setting up the project.

    Where can I get some info as to what needs to go in the htaccess file?

  • #5
    Regular Coder
    Join Date
    Aug 2005
    Location
    MS
    Posts
    844
    Thanks
    11
    Thanked 79 Times in 77 Posts
    "www.1066cards4u.co.uk/test/" uses an XHTML Strict document type while the code posted is using HTML5. There are coding errors in the www.1066cards4u.co.uk/test/ page.

    Validating:

    CSS: http://jigsaw.w3.org/css-validator/
    HTML: http://validator.w3.org/#validate_by_uri+with_options
    Unicorn - W3C's Unified Validator: http://validator.w3.org/unicorn/
    ☠ ☠RON☠ ☠


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •