0
Hello, I already use these rules. htaccess and never gave me problem, so much so that use in other providers currently, I wonder if the version of apache or php on the hosting server hinders the execution of Rules.
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
RewriteRule ^produto(|/)$ produto.php
RewriteRule ^produto/(.*)$ produto.php/$1
ErrorDocument 403 //403.php
ErrorDocument 404 //404.php
ErrorDocument 500 //500.php
The PHP version is 5.5, the provider does not access the apache version, currently runs on Linux 5.2. The Hosting Site is the Locaweb.
Have you tried to change
produto.php/$1
forproduto.php?/$1
?– user86792
Yeah, it didn’t work.
– Thomas Franklin
Then make the first editions:
//
are not valid comments in Apache configuration files.ErrorDocument
precise second parameter:ErrorDocument <3-digit-code> <action>
– user86792