apache - htaccess - Rewrite any URI to find a php file -
After all the .htaccess file examples of "itemprop =" text ">
Let's assume the value of the directory structure is as follows:. There is a way You can use that in your original .htaccess:
| --- Index.php | --- contact.php | --- / products / | | --- index.php | | --- features.php | | --- Price.php .htaccess to write that the user goes for example.com/contact/ < , Then the code / or example.com/products/ or example.com/features/ will get pages to be typed without specifying each page as they would Are you This is to be handled in PHP
Option at RewriteCond% -MultiViews RewriteEngine {REQUEST_FILENAME}! -d RewriteCond% {REQUEST_FILENAME}! -f RewriteCond% {DOCUMENT_ROOT} / $ 1 \ .php -f RewriteRule ^ (. +) /? $ $ 1.php [L]
Comments
Post a Comment