The Big Spring Sale! Up to 50% off!

How to remove the home url name and .html extension from URLs

medradoconsultoria
38 Posts
medradoconsultoria posted this 12 February 2021
Ask a Question

I exported a website in html. The point is that when I click on the Home menu (site root) the url is sitename.com/home.html and I would like it to be only at the root of the sitename.com domain

I would also like to know how to remove the .html extension from the URLs of the pages?

I exported a website in html. The point is that when I click on the Home menu (site root) the url is sitename.com/home.html and I would like it to be only at the root of the sitename.com domain I would also like to know how to remove the .html extension from the URLs of the pages?
Vote to pay developers attention to this features or issue.
4 Replies
Order By: Standard | Newest
Support Team
Support Team posted this 12 February 2021

Hi Marcos,
URLs are created automatically by the server. Unfortunately, Nicepage does not provide the option to configure URL rewriting rules on the server. We recommend that you contact the hosting provider regarding this question.

Please let us know if you have any further questions.
...................................................
Sincerely,
Khrystyna
Nicepage Support Team

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

Hi Marcos, URLs are created automatically by the server. Unfortunately, Nicepage does not provide the option to configure URL rewriting rules on the server. We recommend that you contact the hosting provider regarding this question. Please let us know if you have any further questions. ................................................... Sincerely, Khrystyna Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp

Last edited 15 February 2021 by Support Team

mathieufontaine44
1 Posts
mathieufontaine44 posted this 21 November 2021

As we only have the domain so you need to check with your site hosts for your Page URL's.
this is what godaddy said

As we only have the domain so you need to check with your site hosts for your Page URL's. this is what godaddy said
Support Team
Support Team posted this 22 November 2021

Hi,

mathieufontaine44, we have answered in your private case.

...................................................
Sincerely,
Susanna I.
Nicepage Support Team

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

Hi, *mathieufontaine44*, we have answered in your private case. ................................................... Sincerely, Susanna I. Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
business144
1 Posts
business144 posted this 29 January 2022

Create a .htaccess file at the root of your Webhosting and add the following code:

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

after this, you also need to go into the HTML files and remove the .html from the links without the HTML code. Hope this helps someone else

Create a .htaccess file at the root of your Webhosting and add the following code: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.html -f RewriteRule ^(.*)$ $1.html [NC,L] after this, you also need to go into the HTML files and remove the .html from the links without the HTML code. Hope this helps someone else
You must log in or register to leave comments