Web Hosting Forum | Lunarpages
News: October 6, 2008 - Submit Your Site for the October 2008 Site of the Month!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 11, 2008, 04:02:46 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: virtual include errors - .htaccess  (Read 67 times)
glofra
Space Explorer
***
Offline Offline

Posts: 8


« on: July 14, 2008, 10:22:06 AM »

Lunar desk added to my .htaccess file:
 AddType text/x-server-parsed-html .html .htm

This made the virtual include work on my pages but it adds 3 html files in one file.
If you would look at the source for this page, you will see 3 <html> codes in this one file.

Source of: http://www.macoupinctygenealogy.org/cemetery/scottvillewest.html

In trying to get the html code validated, it certainly won't validate 3 htmls on one page.

Does anyone know any other way to make my:
<!--#include virtual="/xheader.html" -->
<!--#include virtual="/xfooter.html" -->
work without putting an extra html file for each one of them?

Thank you for any help.

Gloria Frazier
Logged
jeenia
Trekkie
**
Offline Offline

Posts: 15



« Reply #1 on: July 21, 2008, 03:35:40 AM »

 Some examples of what can be done with a .htaccess file. They are all covered in this tutorial:

    * Define custom error pages
    * Banning certain IP addresses from accessing your site
    * redirecting users to other pages / sites
    * password protecting directories
    * enabling certain PHP modules
    * enabling SSI (server side includes)
______________________________________________
website development
Free Templates

Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM