0

I see many sites can handle URLs of the form https://www.example.com/somebody. (And I check the source, and https://www.example.com/somebody is the canonical URL.) If I have a file somebody.html or somebody.php, the site reports a 404. If "somebody" is an html file without any file-type suffix, if gets displayed correctly. If it's a php file without suffix, it gets handled like html with the php not executed.

Of course, this may not be how it's handled. I could also see using a "somebody" subdirectory with an index.[html|php] files that announce a different canonical name, but that would add a lot of work for me in resolving relative paths, etc.

Apologies: I'm sure this is answered in many places, but I can't figure out good search terms to describe the problem...

Eclipsoid
  • 1
  • 4

0 Answers0