How to hide extension in url in html

No Comments
How to remove file extensions from display via htaccess Login your cPanel.-> Search the Files category and click on the File Manager icon.-> In the top right hand side, click on Settings -> You should now be in the Root folder of the domain you choose. -> Use text editor.

Use this code: RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html [NC,L]
Use this code in .htaccess file.
Note : -
If are you using the extensions in in this file please remove this.

For Example :-



Change the all Url in same format!
Next PostNewer Post Previous PostOlder Post Home

0 comments

Post a Comment