Recovering the domain pages, .HTML in the slug.

SeoIsArt

Elite Member
Jr. VIP
Joined
Nov 5, 2023
Messages
2,087
Reaction score
479
I am recovering a domain name, it had some html pages where some good backlinks are pointed at. Considering that I will be using wordpress and recreating all of these slugs, would it be a good idea to name the slug at the end with .html (the page being not html). WIll that create a confusion of search engine? Better to 301 redirect it to new page? THX
 
yes, that's doable and you can do that easily in wordpress for either a single page, all or just a few of them,
google will crawl a html version of the page no matter what the slug is,
or whenever you're hosting static pages or using any kind of back-end sofwares to deliver these pages
 
yes, that's doable and you can do that easily in wordpress for either a single page, all or just a few of them,
google will crawl a html version of the page no matter what the slug is,
or whenever you're hosting static pages or using any kind of back-end sofwares to deliver these pages
Just tried to do that with redirection plugin (redirecting the old page with .html at the end if slug to a static wordpress page). Didn't work. It seems I need to change smth in htaccess file.
 
Just tried to do that with redirection plugin (redirecting the old page with .html at the end if slug to a static wordpress page). Didn't work. It seems I need to change smth in htaccess file.
as far as i can understand, accrodring to your main post you want to use the same ".html" at the end of the slugs,
you don't need to make any redirects for that, you can simply change the permalinks for all of the posts or use custom post permalink plugin if you want to make the changes to a few/multiple of them,

redirect is still a choice, but you don't really need it,
and the redirect problem can be due to a lot of problems/factors, if you're using litespeed just make sure to reboot it to work
 
Do you care if the html page uses your wordpress theme? If you don't, then just go ahead and create a .html file with the desired name. FTP the file to the root directory of your website.

If the original file had a pathname that includes a folder, then create those folders and put the html file in the folder and FTP the folder to your website's root.

For example, if the original site .html file was here:

examplewebsite.com/pets/how-to-train-your-dog.html

Then on your PC create an html file named how-to-train-your-dog.html, then place it in a folder named pets, then upload the pets folder to your root directory.

Again, the page won't have the look of your other pages (because they use your wordpress theme) - the look will be whatever you define in the .html file. But if you're doing this just to recreate a page to preserve backlinks, then you shouldn't care what the page looks like.
 
Use this code snippet to remove the HTML extension:

Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.html [NC,L]

And it should be done. :)
 
Do you care if the html page uses your wordpress theme? If you don't, then just go ahead and create a .html file with the desired name. FTP the file to the root directory of your website.

If the original file had a pathname that includes a folder, then create those folders and put the html file in the folder and FTP the folder to your website's root.

For example, if the original site .html file was here:

examplewebsite.com/pets/how-to-train-your-dog.html

Then on your PC create an html file named how-to-train-your-dog.html, then place it in a folder named pets, then upload the pets folder to your root directory.

Again, the page won't have the look of your other pages (because they use your wordpress theme) - the look will be whatever you define in the .html file. But if you're doing this just to recreate a page to preserve backlinks, then you shouldn't care what the page looks like.
Use this code snippet to remove the HTML extension:

Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.html [NC,L]

And it should be done. :)
Thank you both!
 
Back
Top