| Welcome to Webforumz.com. |
|
Mar 9th, 2008, 18:14
|
#1 (permalink)
|
|
New Member
Join Date: Mar 2008
Location: Israel
Posts: 3
|
SSI Problem
Hi,
I have developed a website and am now trying to use include files for my footers. I have been playing around with it for a while now and am just fed up. It is not working! The code I am using for the include is:
<!--#include virtual="footer.shtml"-->
and the code in the footer file is:
<div id="bottomMenu" style="clear:left;">
<span><a href="index.html">Home</a> | <a href="company.html">Company</a> | <a href="docservice.html">Technical Documentation Services</a> | <a href="techandss.html">Technology & Single Sourcing</a> | <a href="products.html">Products</a> | <a href="downloads.html">Downloads & Resources</a> | <a href="search.html">Search Site</a> | <a href="contact.html">Contact Us</a></span><br />
</div>
I tried placing the <div> tags on the index page as well but it didn't make any difference. It is just not including the file.
If anyone has any suggestions I'd really appreciate it.
Thanks!
awieds
|
|
|
Mar 9th, 2008, 19:00
|
#3 (permalink)
|
|
New Member
Join Date: Mar 2008
Location: Israel
Posts: 3
|
Re: SSI Problem
That worked!! Thank you so much. The only problem is that then I need all my files to have a .php file extension, is there any way around this?
|
|
|
Mar 9th, 2008, 21:25
|
#4 (permalink)
|
|
Lead Administrator
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,061
|
Re: SSI Problem
sorry no, not that i know of , but a php extension will not be any different to a html one
Last edited by saltedm8; Mar 10th, 2008 at 09:51.
|
|
|
Mar 10th, 2008, 05:16
|
#5 (permalink)
|
|
New Member
Join Date: Mar 2008
Location: Israel
Posts: 3
|
Re: SSI Problem
What do you mean it won't be different? Sorry I am not very familiar with PHP, I have used asp extensively but never PHP.
Let's say my homepage is index.php, do I need to redirect the index.html to index.php or will it load automatically like index.html?
Thanks,
awieds
|
|
|
Mar 10th, 2008, 08:27
|
#6 (permalink)
|
|
Moderator
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,155
|
Re: SSI Problem
Quote:
Originally Posted by awieds
That worked!! Thank you so much. The only problem is that then I need all my files to have a .php file extension, is there any way around this?
|
You can tell your server to run PHP scripts on your HTML files.
Alternatively you can rename your HTML files to PHP files, and tell your server to redirect all fileName.html requests to fileName.php
|
|
|
Mar 10th, 2008, 09:53
|
#7 (permalink)
|
|
Lead Administrator
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,061
|
Re: SSI Problem
Quote:
|
Let's say my homepage is index.php, do I need to redirect the index.html to index.php or will it load automatically like index.html?
|
you dont need to re-direct. just remove the index.html and it will take you to index.php instead
|
|
|
Mar 10th, 2008, 10:17
|
#8 (permalink)
|
|
Moderator
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,155
|
Re: SSI Problem
Quote:
Originally Posted by saltedm8
you dont need to re-direct. just remove the index.html and it will take you to index.php instead
|
But for an established website, you would be wise to redirect old pages rather than risk losing some SE ranking and breaking some bookmarks.
|
|
|
| Thread Tools |
|
|
| Rate This Thread |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|