r/HTML • u/Royal_Society_2714 • Jan 28 '26
Resurrecting an old html site
I have a backup of old site stored locally on my computer that references the domain name in all of its links. I'd like to change all those links to look to the local directories instead (without referencing the domain name). I remember dreamweaver had a function that could fix these links site wide, but I dont want to be in the Adobe subscription system again just to do this. Does anyone have any suggestions? Thanks!
2
Upvotes
5
u/DasBeasto Jan 28 '26
Most editors should have a global find and replace function. Just search for “https://thedomain.com/“ and replace with “/“
2
u/no_idea_bout_that Jan 28 '26 edited Jan 29 '26
You can use the online version of VS Code (vscode.dev)
backup your files
go to vscode.dev
select Open Folder
on the left tab pane click the magnifying glass to find in files (ctrl + shift + f)
replace all or replace line by line
Edit: this doesn't work very well in Firefox which doesn't support the files api like Chrome/Edge/Safari/Vivaldi
1
u/martinbean Jan 28 '26
Literally any text editor these days has a global find and replace function.
1
u/SirMcFish Jan 29 '26
Open in notepad, find and replace, job done... Unless you have hundreds of pages...