remove ". php" using . htacces in Ubdomain

Asked

Viewed 101 times

1

1 answer

1


1º Check that mod_rewrite is on.

2º 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.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.