hello i am trying to make it so that when you visit my site you don’t have to put .php at the end this is what i am using but it isn’t working (godaddy hosting)
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
i just added the “Options +FollowSymlinks” today and it still didn’t work.
Thanks a lot
i don’t know yet what the “FollowSymLinks” does but the rest does that:
to tell it in human words:
if the requested filename is not a directory and if you append .php to that filename and it is an existing file then do the rewrite rule which appends .php to the requested file
this works on my XAMPP: