Example: If you want to omit the PHP file extension
(http://example.com/aaa.php → http://example.com/aaa)
It will be applied if you add the content entered in the body to .htaccess.
Rewrite Engine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.)/$ $1.php [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(. )$ $1.php [L]
Please note that the detailed description method of .htaccess is not supported.
Please refer to our support policy for details on what is supported.