Black Friday Sale! Save up to 50% off!

Remove .html on html export

Sorrow Finest
41 Posts
Sorrow Finest posted this 10 May 2023
Ask a Question

Please add the function that you have the possibility to remove the ending with .html also with the HMTL export because the SEO properties deteriorates. And I would like to host externally on my own webspace

Please add the function that you have the possibility to remove the ending with .html also with the HMTL export because the SEO properties deteriorates. And I would like to host externally on my own webspace
Vote to pay developers attention to this features or issue.
4 Replies
Order By: Standard | Newest
Support Team
Support Team posted this 10 May 2023

Hello Sorrow,

You can turn " Create Links Without .HTML" while publishing your website.
We are sorry for your wish about HTML export, we can not remove it, because many people use this feature, we can send to the developer team your wish about improve this but not remove it.
...................................................
Sincerely,
George B.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hello Sorrow, You can turn " Create Links Without .HTML" while publishing your website. We are sorry for your wish about HTML export, we can not remove it, because many people use this feature, we can send to the developer team your wish about improve this but not remove it. ................................................... Sincerely, George B. Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
Sorrow Finest
41 Posts
Sorrow Finest posted this 10 May 2023

you don't have to remove it completely, you also have to offer a possibility for the html export, e.g. put a tick where it says remove .html by Html Export. That would be a great solution.

you don't have to remove it completely, you also have to offer a possibility for the html export, e.g. put a tick where it says remove .html by Html Export. That would be a great solution.
Support Team
Support Team posted this 10 May 2023

Hello,

You can remove the .html extensions from the website links on websites hosted in Nicepage hosting.

To remove the .html extension from your website links on your hosting, you must configure your web server to use URL rewriting. This is a process where URLs that end with .html are rewritten to appear without the extension.

The specific steps to achieve this will depend on your web server. If you are using Apache, you can accomplish this by creating an .htaccess file in your website's root directory and adding the following code:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html

This code will check if the requested URL corresponds to a directory or if the requested URL with the .html extension exists as a file. If both conditions are true, it will rewrite the URL to remove the .html extension.

After adding this code to your .htaccess file, you can access your website pages without the .html extension in the URL.

If you are hosting your website on web hosting services, contact them for assistance so they can help you.
...................................................
Sincerely,
Ahmad.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hello, You can remove the .html extensions from the website links on websites hosted in Nicepage hosting. To remove the .html extension from your website links on your hosting, you must configure your web server to use URL rewriting. This is a process where URLs that end with .html are rewritten to appear without the extension. The specific steps to achieve this will depend on your web server. If you are using Apache, you can accomplish this by creating an .htaccess file in your website's root directory and adding the following code: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.html -f RewriteRule ^(.*)$ $1.html This code will check if the requested URL corresponds to a directory or if the requested URL with the .html extension exists as a file. If both conditions are true, it will rewrite the URL to remove the .html extension. After adding this code to your .htaccess file, you can access your website pages without the .html extension in the URL. If you are hosting your website on web hosting services, contact them for assistance so they can help you. ................................................... Sincerely, Ahmad. Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
peterharichse
1 Posts
peterharichse posted this 01 October 2024

Hello,

You can remove the .html extensions from the website links on websites hosted in Nicepage hosting.

To remove the .html extension from your website links on your hosting, you must configure your web server to use URL rewriting. This is a process where URLs that end with .html are rewritten to appear without the extension.

The specific steps to achieve this will depend on your web server. If you are using Apache, you can accomplish this by creating an .htaccess file in your website's root directory and adding the following code:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html

This code will check if the requested URL corresponds to a directory or if the requested URL with the .html extension exists as a file. If both conditions are true, it will rewrite the URL to remove the .html extension.

After adding this code to your .htaccess file, you can access your website pages without the .html extension in the URL.

If you are hosting your website on web hosting services, contact them for assistance so they can help you.
...................................................
Sincerely,
Ahmad.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Remember to add [NC,L] at the end of the rule for it to work regardless of upper or lower cases in the urls. The L is added incase you need to continue to create more rules in the .htaccess file.

With some hosting providers you then have to go into every single html document and remove the .html endings on every link for this solution to work. I had to do that but then it works fine. The problem is when you want to update the website you have to do it all over again. It takes a lot of time.

Please Nicepage fix this issue so that you don't have to create work arounds to use your otherwise great website builder. Export pages without .html extensions would be a great addition to your tool.

Full code:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.*)$ $1.html [NC,L]

> Hello, > > You can remove the .html extensions from the website links on websites hosted in Nicepage hosting. > > To remove the .html extension from your website links on your hosting, you must configure your web server to use URL rewriting. This is a process where URLs that end with .html are rewritten to appear without the extension. > > The specific steps to achieve this will depend on your web server. If you are using Apache, you can accomplish this by creating an .htaccess file in your website's root directory and adding the following code: > > > > RewriteEngine on > RewriteCond %{REQUEST_FILENAME} !-d > RewriteCond %{REQUEST_FILENAME}\.html -f > RewriteRule ^(.*)$ $1.html > > This code will check if the requested URL corresponds to a directory or if the requested URL with the .html extension exists as a file. If both conditions are true, it will rewrite the URL to remove the .html extension. > > After adding this code to your .htaccess file, you can access your website pages without the .html extension in the URL. > > If you are hosting your website on web hosting services, contact them for assistance so they can help you. > ................................................... > Sincerely, > Ahmad. > Nicepage Support Team > > Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 > Follow us on Facebook: http://facebook.com/nicepageapp Remember to add [NC,L] at the end of the rule for it to work regardless of upper or lower cases in the urls. The L is added incase you need to continue to create more rules in the .htaccess file. With some hosting providers you then have to go into every single html document and remove the .html endings on every link for this solution to work. I had to do that but then it works fine. The problem is when you want to update the website you have to do it all over again. It takes a lot of time. Please Nicepage fix this issue so that you don't have to create work arounds to use your otherwise great website builder. Export pages without .html extensions would be a great addition to your tool. Full code: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.html -f RewriteRule ^(.*)$ $1.html [NC,L]

Last edited 01 October 2024 by peterharichse

You must log in or register to leave comments