php – How to assign a page to a subpage-ThrowExceptions

Exception or error:

for example, i have something like this:

enter image description here

I need result like this:




I have .htaccess to remove .php from url

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]

Is this possible with .htaccess?

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *