How do i edit the .htaccess file?

Tann3r
edited November -1 in Support Forums

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

  • Admin
    edited November -1

    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.

  • Tann3r
    edited November -1

    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.