Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > HTML, XHTML and CSS

Reply
 
LinkBack Thread Tools
Old March 9th, 2008, 03:14 PM   #1
New Member
 

Join Date: Mar 2008
Location: Israel
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 awieds is on a distinguished road
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 &amp; Single Sourcing</a> | <a href="products.html">Products</a> | <a href="downloads.html">Downloads &amp; 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
awieds is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old March 9th, 2008, 03:26 PM   #2
Most Reputable Member
SuperMember
 

Join Date: Nov 2005
Age: 28
Posts: 1,546
Thanks: 1
Thanked 11 Times in 11 Posts
Rep Altering Power: 0 saltedm8 will become famous soon enough saltedm8 will become famous soon enough
Re: SSI Problem

look into php, http://www.tizag.com/phpT/include.php , thats the best i can come up with
saltedm8 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old March 9th, 2008, 04:00 PM   #3
New Member
 

Join Date: Mar 2008
Location: Israel
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 awieds is on a distinguished road
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?
awieds is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old March 9th, 2008, 06:25 PM   #4
Most Reputable Member
SuperMember
 

Join Date: Nov 2005
Age: 28
Posts: 1,546
Thanks: 1
Thanked 11 Times in 11 Posts
Rep Altering Power: 0 saltedm8 will become famous soon enough saltedm8 will become famous soon enough
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; March 10th, 2008 at 06:51 AM..
saltedm8 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old March 10th, 2008, 02:16 AM   #5
New Member
 

Join Date: Mar 2008
Location: Israel
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 awieds is on a distinguished road
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
awieds is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old March 10th, 2008, 05:27 AM   #6
Most Reputable Member
 

Join Date: May 2007
Location: UK
Age: 29
Posts: 1,107
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 MikeHopley is just really nice MikeHopley is just really nice MikeHopley is just really nice MikeHopley is just really nice MikeHopley is just really nice
Re: SSI Problem

Quote:
Originally Posted by awieds View Post
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
MikeHopley is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old March 10th, 2008, 06:53 AM   #7
Most Reputable Member
SuperMember
 

Join Date: Nov 2005
Age: 28
Posts: 1,546
Thanks: 1
Thanked 11 Times in 11 Posts
Rep Altering Power: 0 saltedm8 will become famous soon enough saltedm8 will become famous soon enough
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
saltedm8 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old March 10th, 2008, 07:17 AM   #8
Most Reputable Member
 

Join Date: May 2007
Location: UK
Age: 29
Posts: 1,107
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 MikeHopley is just really nice MikeHopley is just really nice MikeHopley is just really nice MikeHopley is just really nice MikeHopley is just really nice
Re: SSI Problem

Quote:
Originally Posted by saltedm8 View Post
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.
MikeHopley is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
First image problem and inline list problem konnor5092 HTML, XHTML and CSS 8 December 1st, 2007 05:08 AM


Search Engine Optimization by vBSEO 3.2.0 RC8