Click to See Complete Forum and Search --> : Redirect html acting strange


Dayna
02-24-2010, 06:40 PM
Hi everybody. I am getting something really strange on my site that is taking an index.html with the redirect in it and turning it into a text. Here is what I uploaded and saved.

<html>
<head>
<title>Brokewn Sound Entertainment, LLC</title>
<meta http-equiv="REFRESH" content="0;url=http://www.brokensoundentertainment.com/e107"></head>
</html>

When I go to the main page expecting it to redirect it shows the code in a body of the page. After looking at the source it seems to be adding a whole lot more to it.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<title></title>
<meta name="Generator" content="Cocoa HTML Writer">
<meta name="CocoaVersion" content="1038.25">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 14.0px 0.0px; font: 14.0px Arial}
span.s1 {font: 14.0px 'Lucida Grande'}
</style>
</head>
<body>
<p class="p1">&lt;html&gt;<span class="s1"><br>
</span>&lt;head&gt;<span class="s1"><br>
</span>&lt;title&gt;Brokewn Sound Entertainment, LLC&lt;/title&gt;<span class="s1"><br>
</span>&lt;meta http-equiv="REFRESH" content="0;url=http://www.brokensoundentertainment.com/e107"&gt;&lt;/head&gt;<span class="s1"><br>
</span>&lt;/html&gt;</p>
</body>
</html>
I am not sure how to fix this. Never seen this before. I am thinking maybe a file somewhere. The site was originally built using Dreamweaver CSS template. So that may explain something. Anyways I would appreciate any help with this.

Robbe
02-25-2010, 03:20 AM
Try replacing your metatag with this:

<script type="text/javascript">
<!--
window.location = "http://www.brokensoundentertainment.com/e107"
//-->
</script>

Dayna
02-25-2010, 08:14 AM
I tired it. Unfortunately it didn't work. Below is what I put in the index file.

<html>
<head>
<title>Broken Sound Entertainment, LLC</title>
<script type="text/javascript">

<!--
window.location = "http://www.brokensoundentertainment.com/e107"
//-->
</script></head>
</html>


Below is what is on the Web Site Source.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<title></title>
<meta name="Generator" content="Cocoa HTML Writer">
<meta name="CocoaVersion" content="1038.25">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 14.0px 0.0px; font: 14.0px Arial}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Verdana}
p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Arial}
span.s1 {font: 14.0px 'Lucida Grande'}
span.s2 {font: 13.0px Verdana}
</style>
</head>
<body>
<p class="p1">&lt;html&gt;<span class="s1"><br>
</span>&lt;head&gt;<span class="s1"><br>
</span>&lt;title&gt;Broken Sound Entertainment, LLC&lt;/title&gt;<span class="s1"><br>
</span><span class="s2">&lt;script type="text/javascript"&gt;</span></p>
<p class="p2">&lt;!--</p>
<p class="p2">window.location = "http://www.brokensoundentertainment.com/e107"</p>
<p class="p2">//--&gt;</p>
<p class="p3"><span class="s2">&lt;/script</span>&gt;&lt;/head&gt;<span class="s1"><br>
</span>&lt;/html&gt;</p>
</body>
</html>

I have no clue what is entering all this extra code and putting the text that I put in into the body of it.

Dayna
02-25-2010, 08:36 AM
I did a search to see what was inserting all that code and it turns out that it wasn't the web site. It was the text editor in OSX. All is working now. Thank you for the help.

Eye for Video
02-25-2010, 08:40 AM
There is no <body> in your original code so one is being added.
Eye for Video
www.cidigitalmedia.com