Posts by andyk

    Hi,


    I created a two page list and detail on a project some time ago.

    The person running the SEO on the site is picking up urls that don't exist in Google search console.


    I have an .htaccess rule as follows for the list/detail setup, building-detail.php being the "detail" page. This all works as expected, tidying the urls so that they take the form /properties/property-name


    Code
    1. RewriteRule ^properties/([a-zA-Z0-9-/]+)$ /building-detail.php?s=$1 [L]

    The issue I am having is that any url entered after /properties returns a 200 OK response. e.g. /properties/whatever


    Is they any way to return a 404 for "detail" pages that don't exist?