Mobile app version of vmapp.org
Login or Join
Odierno851

: File:///user/home/file.xhtml displays properly but http://website.com/file.xhtml does not I converted a genealogical gedcom file to xhtml to post to my website. The file displays properly when loaded

@Odierno851

Posted in: #Xhtml

I converted a genealogical gedcom file to xhtml to post to my website. The file displays properly when loaded into Firefox or Chrome from my computer using file:///home/user/file.xhtml but when uploaded to my website and accessed as
website.com/file.xhtml


both browsers merely list the contents as a text file. Is there any simple way to get the file to work from the web? Here are the first few lines of the file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html:html xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.w3.org/2000/svg"
xml:lang="nl">
<html:head>
<html:meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8"/>
<html:title></html:title>
<html:style>

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Odierno851

2 Comments

Sorted by latest first Latest Oldest Best

 

@Bryan171

There is a lot of problems with Gedcom file conversion and web hosting.

Have you checked your export file sources to see if codes match original source codes?

Export done with UT-8 coding? Tried HTML export opposed to XHTML?

Some software is proprietary and will only work on your machine and the proprietary server. You mentioned in the uploaded file errors exist. Also see if links are pointing to different folders on your machine and not actually being uploaded.

You might want try a different convertor first. Here is a link to GED2www, which is free for mac and pc.
lesandchris.com/gene-ged2www

10% popularity Vote Up Vote Down


 

@Ogunnowo487

... it's showing as Content-Type: text/plain.


Providing the file has validated successfully as XHTML/XML then (assuming you are on an Apache web server) you can try adding the following to the .htaccess file in the document root (or your server config, if you have access):

AddType application/xhtml+xml xhtml


(I assume all modern browsers understand XHTML these days?!)

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme