The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Other
> Beginner Programming
|
Newbie help SEO says 2 home pages
Discuss Newbie help SEO says 2 home pages in the Beginner Programming forum on Dev Shed. Newbie help SEO says 2 home pages Beginner Programming forum discussing problems and solutions for just about any issue. Experienced programmers offer their help to those just starting out.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

June 17th, 2012, 05:11 PM
|
|
Registered User
|
|
Join Date: Jun 2012
Posts: 5
Time spent in forums: 1 h 56 m 28 sec
Reputation Power: 0
|
|
|
Newbie help SEO says 2 home pages
Hi all I Created my own website and I'm not an expert on site design or programming, I uploaded my site with Dreamweaver
a SEO scan of my site says I have 2 identical content pages
www dot 123 dot com
and
www dot 123 dot com/index.html
I have only uploaded www dot 123 dot com/index.html as my home page
If I delete the home page /index.html from the main directory on the server my page cannot be found live in a browser.
Any help would be appreciated
|

June 17th, 2012, 07:24 PM
|
 |
Code Monkey V. 0.9
|
|
Join Date: Mar 2005
Location: A Land Down Under
|
|
|
You always need an "index" page as you've seen. Web servers mostly look for index.html, index.htm, defualt.htm, index.php, index.asp or they will look through a list to find the first matching file name.
You would be showing two home pages because your home page links on your site are pointing to 'http://site.com/index.html' and not 'http://site.com' as they really should be.
Overall this isn't a huge deal. it's not perfect but it's not to bad. Google and most other SE's realise that index.html and other files like that are meant to be index pages, so don't penalise you much if at all. If you are worried about it, change all of the links to only have the domain name in them without the index.html part after it.
|

June 19th, 2012, 05:18 PM
|
|
Registered User
|
|
Join Date: Jun 2012
Posts: 5
Time spent in forums: 1 h 56 m 28 sec
Reputation Power: 0
|
|
|
Hi Catacaustic
Thanks for the tip, I have changed the links but still getting SEO warning
The breadcrumb home may be the problem but i dont think that can be changed
[code]
<div id="breadcrumb"><script language="JavaScript">breadCrumbs("wwwdotmysitedotcom",">","index.html","style3","style3","style3","0");</script></div>
[code]
|

June 19th, 2012, 05:31 PM
|
 |
Code Monkey V. 0.9
|
|
Join Date: Mar 2005
Location: A Land Down Under
|
|
|
I can't be 100% sure of how that bit of JavaScript works because I can't see the breadCrumbs() function, but I'd think that instead of "index.html" you should probably be able to use "/" or even just "" there.
|

June 19th, 2012, 06:48 PM
|
|
Registered User
|
|
Join Date: Jun 2012
Posts: 5
Time spent in forums: 1 h 56 m 28 sec
Reputation Power: 0
|
|
|
[code]
<script language="Javascript" type="text/javascript">
function breadCrumbs(base,delStr,defp,cStyle,tStyle,dStyle,nl) { // by Paul Davis - url blocked
loc=window.location.toString();subs=loc.substr(loc.indexOf(base)+base.length+1).split("/");
document.write('<a href="'+getLoc(subs.length-1)+defp+'" class="'+cStyle+'">Home</a> '+'<span class="'+dStyle+'">'+delStr+'</span> ');
a=(loc.indexOf(defp)==-1)?1:2;for (i=0;i<(subs.length-a);i++) { subs[i]=makeCaps(unescape(subs[i]));
document.write('<a href="'+getLoc(subs.length-i-2)+defp+'" class="'+cStyle+'">'+subs[i]+'</a> '+'<span class="'+dStyle+'">'+delStr+'</span> ');}
if (nl==1) document.write("<br>");document.write('<span class="'+tStyle+'">'+document.title+'</span>');
}
function makeCaps(a) {
g=a.split(' ');for (l=0;l<g.length;l++) g[l]=g[l].toUpperCase().slice(0,1)+g[l].slice(1);
return g.join(" ");
}
function getLoc(c) {
var d="";if (c>0) for (k=0;k<c;k++) d=d+"../"; return d;
}
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
</script>
[code]
I think this is the breadcrumb code
|

June 19th, 2012, 08:10 PM
|
 |
Code Monkey V. 0.9
|
|
Join Date: Mar 2005
Location: A Land Down Under
|
|
Did you try my suggestion above? Did it work or not?
Code:
<div id="breadcrumb"><script language="JavaScript">breadCrumbs("wwwdotmysitedotcom",">","/","style3","style3","style3","0");</script></div>
|

June 20th, 2012, 01:22 AM
|
|
Registered User
|
|
Join Date: Jun 2012
Posts: 5
Time spent in forums: 1 h 56 m 28 sec
Reputation Power: 0
|
|
|
I tried "/" and also "", but the breadcrumb wont list the index page of the sub folder.
eg.
Normally it lists Home>Sony>part
with your suggestion Home>part
Cheers
|

June 25th, 2012, 04:32 PM
|
|
Registered User
|
|
Join Date: Jun 2012
Posts: 5
Time spent in forums: 1 h 56 m 28 sec
Reputation Power: 0
|
|
|
It was suggested a 301 redirect but I only have the one physical home page .index in the main directory. Not sure what to do now.
|

June 28th, 2012, 06:37 AM
|
|
Registered User
|
|
Join Date: Jun 2012
Posts: 3
Time spent in forums: 34 m 49 sec
Number of bans: 1
Reputation Power: 0
|
|
|
It is bad for on page you have to redirect it with the help of 301 otherwise search engine declare it in duplicate content both pages has a different url...So you have to take some action before doing some SEO works on it....
|

September 13th, 2012, 01:40 AM
|
|
Contributing User
|
|
Join Date: Aug 2012
Posts: 40
Time spent in forums: 8 h 47 m 10 sec
Reputation Power: 1
|
|
|
I think redirecting the URL will help you to solve this issue. Use 301 to redirect the URL permanently.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|