I'm having trouble using .htaccess. This is the content of my .htaccess file
RewriteEngine On RewriteCond %{REQUEST_FILENAME}!-d RewriteCond %{REQUEST_FILENAME}!-f RewriteRule ^([^.]+)\.php$ $1 [L] I opened up a text file, pasted these lines and saved it as .htaccess It was showing .htaccess before i right clicked the .htaccess file and changed it to "open with notepad". I guess that shouldn't make a difference but now its showing a blank name.
The main problem is when i open my localhost on the browser through wamp, the folder where I've kept the .htaccess file, isn't visible or if i access it shows this internal server error.Now, if i remove the .htaccess file from there, it shows up in the localhost directory and doesn't show an error when i try to open it.
example.com/somepageand that is translated invisibly tosomepage.php. The links on your site should be changed not to include the .php extension, and your users won't see them.