.htaccess it not my strong suite. Is there any there can optimise this code?RewriteEngine onRewriteCond %{REQUEST_URI} !^/(public)RewriteRule (.*) /public/$1Options +FollowSymLinks -MultiViews# Turn mod_rewrite onRewriteEngine OnRewriteBase /RewriteCond %{REQUEST_FILENAME}.php -fRewriteCond %{REQUEST_URI} !/$RewriteRule (.*) $1\.php [L]ErrorDocument 500 Sorry, our script crashed. Oh dearErrorDocument 500 /cgi-bin/crash-recoverErrorDocument 500 http://error.example.com/server_error.htmlErrorDocument 404 /errors/not_found.htmlErrorDocument 401 /subscription/how_to_subscribe.htmldon't know if it necessary but here are a example of the folder systemapppublicindex.phpcontact.phpforumlast_news.phpusersuser.phpask.php.htaccess
.htaccess using public folder and SEO friendly URL
url routing;.htaccess