Need help replacing www with subdomain handle

webmaster888

New member
Joined
May 19, 2023
Messages
2
Points
3
I have got a not-for-profit website that is rather large. Please advise me on how to replace multiple (hundreds or even thousands) of www with a subdomain. handle after moving all the HTML pages from the website's root to a subdomain (as in subdomain.domain.com)? Is there an easy and quick way to do it? My host's (LiquidWeb) support did that for me recently such as a couple years ago, but they seem to not know how to do that anymore. I hope someone on here will help me do that even if for a small fee.

Change from: https://www.domain.com/anyfilename.htm
Change to: https://subdomain.domain.com/anyfilename.htm

Thus replace www with a specific word in the subdomain location for thousands of pages all at once.
 
Last edited:

AlbaHost

New member
Joined
Oct 29, 2021
Messages
14
Points
3
Is that whm Cpanel?
 
  • Like
Reactions: webmaster888

webmaster888

New member
Joined
May 19, 2023
Messages
2
Points
3
webmaster888
I have got Plesk. Transferred from cPanel a couple years ago
 

AlbaHost

New member
Joined
Oct 29, 2021
Messages
14
Points
3
AlbaHost
Otherwise you can tey this method, not sure if it still works, backup your data before you proceed with below:

  • Step:: Login to Plesk and open File Manager
  • Step::2 Go inside public_html and create a php file with the name- findandreplace.php
  • Step::3 Now copy the entire code provided in the link below: https ://pastebin. com/UaGaCuS6
  • Step::4 Paste the copied code in findandreplace.php file and save the file.
  • Step::5 Now run this file from the new tab.
  • In order to run this file you have to write the exact URL like https ://domain. com/findandreplace.php Once you hit this file, a page will appear where you can search for a keyword and replace it in whole Plesk.
  • In this way you can find and replace a keyword recursively in Plesk.

Hope it helps.
 
Older threads
Replies
1
Views
2,060
Replies
2
Views
2,094
Replies
2
Views
3,975
Replies
3
Views
2,318
wms
Newer threads
Replies
8
Views
3,576
Replies
2
Views
2,110
Replies
6
Views
2,456
Replies
6
Views
2,732
Latest threads
Replies
1
Views
16
Replies
0
Views
37
Replies
0
Views
37
Replies
1
Views
48
Replies
3
Views
112

Latest postsNew threads

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top