I've the next url structure:


I'd like for page.php to appear even when the consumer makes its way into:


How to get this done using htaccess? Please bear in mind that many different pages come in exactly the same directory level as page.php and I'd like its these to be around exactly the same way.

I'd try the next:

RewriteEngine on

RewriteRule ^([^/]*)$ /sitename/views/www/$1.php [L]

This can display the expected page without any redirect. Replace [L] with [R=permanent,L] if you want the browser to become rerouted.