I am using the following htaccess code. However this code means that my images or CSS are not loading, on the plus side it means that .php or the trailing / are needed like my client has asked for.
How can I make this work so that the images and the CSS and JS etc load correctly?
I would like the url to look like www.example.com/services or www.example.com/services/
currently google shows up both
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)/$ $1.php
RewriteRule ^([^/]+)/([^/]+)/$ /$1/$2.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule (.*)$ /$1/ [R=301,L]