To configure Google Chrome to redirect a specific subdomain of a given site to another subdomain, follow these steps:
-
Open Google Chrome.
-
Click on the three dots (settings) in the top right corner.
-
Select "Settings".
-
Scroll down and click on "Open a specific page or set of pages".
-
In the "URL" field, enter
javascript:(function(){document.domain = 'new_subdomain';})();replacingnew_subdomainwith the desired subdomain. -
Click on "Add".
-
To apply the change, click on "Reload" or press
F5.
Now, whenever you visit the given site, Google Chrome will redirect to the specified subdomain.
References:
- Chrome Extension: Redirect URL (Alternative method using a Chrome extension)
Books:
- "HTML & CSS: Design and Build Websites" by Jon Duckett
Articles:
Online Resources: