homepage Welcome to WebmasterWorld Guest from 54.234.2.94
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Wonder Thing Happening
I getting one thing with each & every URL
abhishekmishra




msg:4464715
 5:23 am on Jun 13, 2012 (gmt 0)

Hi Guys,
I getting one thing with each & every URL ie whenever I'm putting example.com can after the any Domain name for eg webmasterworld.com/?example.com then I'm getting the landing page of the website with same content & matter. can anyone tell me what is this?

[edited by: incrediBILL at 8:36 am (utc) on Jun 13, 2012]
[edit reason] fixed URLS, use Example.com [/edit]

 

g1smd




msg:4464720
 5:33 am on Jun 13, 2012 (gmt 0)

Where are you putting this? Why would you add a domain name on the end of another one?

abhishekmishra




msg:4464731
 5:59 am on Jun 13, 2012 (gmt 0)

Because One of my client website got indexed in Google with including this URL & we don't have any matter or web page with this name.

lucy24




msg:4464744
 7:08 am on Jun 13, 2012 (gmt 0)

Go to the Parameters section of Google Webmaster Tools and tell them to ignore the parameter "example.com".

By default, pages in .html simply ignore query strings. That includes cases where the directory slash / conceals a file called index.html. So that's why the page is coming up as normal.

There is a place in the Apache docs that explains this. I read it within the last two weeks but promptly forgot how it works. Something about PathInfo...

[edited by: incrediBILL at 8:37 am (utc) on Jun 13, 2012]
[edit reason] cleanup in aisle 5 [/edit]

abhishekmishra




msg:4464749
 7:15 am on Jun 13, 2012 (gmt 0)

thanks lucy24

incrediBILL




msg:4464792
 8:40 am on Jun 13, 2012 (gmt 0)

Google thinks any parameters after a page name makes it a new page so it's making a mess out of your site when things like this get indexed unless it's intentional.

Place a meta canonical in the page which just has the page and no parameters.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved