Web Hosting Forum | Lunarpages
News: July 14, 2008 - New Contest! - Submit Your WordPress Theme Designs, Win BIG!
August 5, 2008 - Time to Submit Your Links for the August 08 Site of the Month Award!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
August 20, 2008, 08:21:23 PM


Login with username, password and session length


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

Posts: 7


« 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
Space Explorer
***
Offline Offline

Posts: 8


« 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.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


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