The bottom 4 rewrite rules work fine, but as soon as I add the first rule to make it so I can hide the .php extension from standard pages (eg about.php), then the last rule stops working?
With the last rule I wanted the URL to be domain.com/123 but the page is actually /offer.php?id=123
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
RewriteRule ^preview/([^/]*)$ /create-preview.php?id=$1 [L]
RewriteRule ^update/([^/]*)$ /update.php?id=$1 [L]
RewriteRule ^delete/([^/]*)$ /delete.php?id=$1 [L]
RewriteRule ^([^/]*)$ /offer.php?id=$1 [L]