Solving A Duplicate URL

Post all HTML related questions here. No support.

Moderator: Project members

Post Reply
Message
Author
Charlie Sage
504 Command not implemented
Posts: 8
Joined: 2011-03-05 20:25
First name: Keith
Last name: Braithwaite

Solving A Duplicate URL

#1 Post by Charlie Sage » 2012-01-13 11:21

I have set up a new website using iWeb.

For some obscure reason the URL is being duplicated. The website is ChessSetHeaven.com and the Welcome page, for example, is coming up as http://www.chesssetheaven.com/www.chesssetheaven.com/Welcome.html.

I have found where to prevent this happening in the future on iWeb but have no idea how to resolve the issue as it stands on the site using Filezilla.

I am told I have to either drag and drop the second file to public.html or copy and paste it but I am pretty new to Filezilla and do not know how this is done. The options are not clear.

Help!

User avatar
boco
Contributor
Posts: 26935
Joined: 2006-05-01 03:28
Location: Germany

Re: Solving A Duplicate URL

#2 Post by boco » 2012-01-13 21:42

If you still have a complete local copy of your site you should start over.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

Charlie Sage
504 Command not implemented
Posts: 8
Joined: 2011-03-05 20:25
First name: Keith
Last name: Braithwaite

Re: Solving A Duplicate URL

#3 Post by Charlie Sage » 2012-01-16 16:11

Thank you for the reply, boco. Where would I find this local copy?

Things are getting even more complicated now - for some reason another of my websites - www.KeithBraithwaite.com - is also coming up as http://www.keithbraithwaite.com/www.che ... lcome.html when there should be no connection between the two.

I am very new to Filezilla and have no idea how to solve it all.

User avatar
boco
Contributor
Posts: 26935
Joined: 2006-05-01 03:28
Location: Germany

Re: Solving A Duplicate URL

#4 Post by boco » 2012-01-17 00:00

Well, I have grabbed the index.html document of your server.

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>
</title>
<meta http-equiv="refresh" content="0;url= www.chesssetheaven.com/Welcome.html" />
</head>
<body>
</body>
</html>
It is a simple meta redirection which does exactly what you're experiencing: It sends you from the root of the webserver to a Welcome.html document in the subdirectory www.chesssetheaven.com. Added to your URL, it results in the wierd string you're seeing.

I don't know where this comes from, but it's causing your current trouble. A simple 'ping' reveals both your domains point to the very same server, with the chess website in a subdirectory. Since both domain names point to the root of the server, both will be redirected to the subdirectory of the chess website.

http://www.chesssetheaven.com/www.chesssetheaven.com/Welcome.html

So the red part is NOT a doubled URL, but actually the name of the subdirectory the chess website is in.

What you must check for is: Do you have virtual roots for both domains? Can you configure the domain to point to a subdirectory rather than the root?
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

Charlie Sage
504 Command not implemented
Posts: 8
Joined: 2011-03-05 20:25
First name: Keith
Last name: Braithwaite

Re: Solving A Duplicate URL

#5 Post by Charlie Sage » 2012-02-18 11:06

Thank you for your reply and for doing the research. Unfortunately I have no idea what it is you have written.

I am pretty much a newbie on Filezilla and only really know the basics.

User avatar
boco
Contributor
Posts: 26935
Joined: 2006-05-01 03:28
Location: Germany

Re: Solving A Duplicate URL

#6 Post by boco » 2012-02-19 14:14

<meta http-equiv="refresh" content="0;url= www.chesssetheaven.com/Welcome.html" />
That's the line that matters, the red part especially. Since the URL given here lacks the protocol identifier (http://), it is treated as subdirectory. So the URL (example):

http://www.example.com

would be redirected to

http://www.example.com/www.chesssetheaven.com/Welcome.html
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

indexfz
421 Kicked by Administrator
Posts: 4
Joined: 2012-02-25 16:19
First name: In
Last name: Dex

Re: Solving A Duplicate URL

#7 Post by indexfz » 2012-03-01 03:33

Just to add, maybe slightly off-topic:
<meta http-equiv="refresh" content="0;url=http://www.chesssetheaven.com/Welcome.html" />
content="0 is the number of seconds it takes for the page to refresh, or in this case, to redirect. So if you want your browser to redirect the page in 5 seconds, simply change the content value from "0" to "5". Like so:
<meta http-equiv="refresh" content="5;url=http://www.chesssetheaven.com/Welcome.html" />

Post Reply