Hey!
I have the following code for htaccess that directs /page/ to /page.php etc
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{REQUEST_URI} !(/$|\.)
RewriteRule (.*) %{REQUEST_URI}/ [R=301,L]
#RewriteBase /
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^([a-z0-9\-]+)/?$ $1.php [NC,L,QSA]
However, I want to also add /admin/page/ that will rewrite to /admin/page.php
How might I go about adding this ability.
Thanks
Dan