Mobile app version of vmapp.org
Login or Join
Samaraweera270

: What is it called when a web server returns arbitrary content with 200/OK when the client requests nonexistent directories or files? Example: Client: GET http://www.example.com/nonexistent/foo Server:

@Samaraweera270

Posted in: #Content #Django #Seo #Url

Example:

Client:
GET www.example.com/nonexistent/foo
Server:
200 OK <html... "Foo has three products in their Favorites list."... accompanied by three arbitrary products from other parts of the website />

I'm seeing this behavior on a site running Django. User Foo doesn't seem to have to be real. In fact this always works with any English language word or even popular names.

The server will return 404 if you request nonexistent paths containing random characters that aren't common names or words:
www.example.com/12345abcdef/hCt5

Is this some custom SEO logic written into their Python code, or is there something else entirely at work here? Thanks.

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Samaraweera270

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme