I need to remove a URL foo at www.example.com/foo.But when I type the URL under Remove URL and hit continue, on the next page I see the URL changed to http://example.com/www.example.com/foo (This is not the URL I need to remove.)Instead of:www.example.com/fooI have no clue why this is happening. Any help appreciated.
How to Remove a URL in Google Webmaster Tools
google search console
First,  make sure you're giving the full URL, including http://. Although you might think www.example.com is a website, it could just as easily be a filename on another website.Also make sure you are submitting the correct domain for the GWT profile. http://www.example.com and http://example.com are different sites. If GWT is autocompleting to http://example.com... then I would assume you're on the non-www profile. So either submit the non-www URL here, or to to the www profile and submit the www URL there.