duplicate pages with duplicate meta descriptions

This is by far one of the best pages I have seen, very educational but I am still suffering from a weird problem that maybe someone can help me with. I have a very basic website and use very simple php include statements on my website to do my menu and footer. Very simple works very well, but, I am now seeing google reporting strange things like duplicate pages with duplicate meta descriptions such as:

/x/p/A-F-M.html/A-1-2.html /x/p/A-F-M.html/B-1-2.html /x/p/A-F-M.html/C-1-2.html /x/p/A-F-M.html/D-1-2.htm /x/p/A-F-M.html/E-1-2.html /x/p/A-F-M.html/F-1.html /x/p/A-F-M.html/G-1.html

By looking at this you can see that these are NOT "valid" URL's they are two URL's in one. I can go to any page ending in .htm or .html and add "/test" press my return and I will stay on the say page get a 200 ok response and see the"/test" added to to the URL. What I would expect is a 404 Error page to come up as it is a non valid page.

In testing I discovered that is I remove

AddHandler application/x-httpd-php5 .php .html .htm .shtml

from my .htacess I do get the correct 404 error BUT I lose all menus and footers. I am not a php kind of guy and this is a simple site, can anyone tell me what needs to be changed to fix this.

Again this is a great page, thanks for the hard work

Send From [https://www.smore.com/v6vm-penomet-hydro-pump]

Trac:
Username: derekbarnes361