How do i edit the .htaccess file?
Hello, I've tried removing the .html and .php from my url's, but i need to edit the .htaccess file to do that. When i click save, it says "Cannot be saved." Any help? Thanks!
The code below is what im trying to write in:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^.]+)$ $1.html [NC,L]
Comments
-
Hello, I've tried removing the .html and .php from my url's, but i need to edit the .htaccess file to do that. When i click save, it says "Cannot be saved." Any help? Thanks!
The code below is what im trying to write in:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^.]+)$ $1.html [NC,L]Hello,
Make sure you are creating .htaccess file inside htdocs folder because you cannot edit/create any file outside that.
-
Oh okay, thank you! I thought you had to edit the .htaccess file where it is.. Didn't realize you had to create it in the htaccess.