remove ".php" using .htacces on subdomain [duplicate]

1

I'm having a problem trying to use the page without typing the extension. Ex: link for link

I have tried to find other sites on the same but none are working in the subdomain.

    
asked by anonymous 27.10.2016 / 11:57

1 answer

1

1 Make sure mod_rewrite is turned on.

2nd Create the .htaccess file with the following content

RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule !.*\.php$ %{REQUEST_FILENAME}.php [QSA,L]
  

Remember to put the file in the root of the sub-domain.

    
27.10.2016 / 12:39