To redirect a webpage on Webflow to a new URL after printing 20,000 QR codes with the old URL, you can try using JavaScript to handle the redirection.
Here's how you can approach it:
1. Create a new JavaScript file: Go to your Webflow project, navigate to the Project Settings, and click on the "Custom Code" tab. Add a new JavaScript file where you'll write the redirect logic.
2. Write the redirect logic: In the JavaScript file, you can use the `window.location.replace()` method to redirect the page. You can create a condition to check if the current URL matches the old URL, and if it does, redirect to the new URL.
Here's an example code snippet:
```javascript
// Check if the current URL matches the old URL
if (window.location.href === 'old_url') {
// Redirect to the new URL
window.location.replace('new_url');
}
```
Make sure to replace the 'old_url' and 'new_url' placeholders with the actual URLs for your specific case.
3. Link the JavaScript file: Head back to the Webflow Designer and go to the page where you want the redirection to take place. Open the page settings and add the JavaScript file you created to the page's "Custom Code" section.
4. Test the redirection: Publish your Webflow site and test the redirection by accessing the old URL. The page should automatically redirect to the new URL specified in the JavaScript code.
By using JavaScript to handle the redirection, you can bypass any issues you may be experiencing with the 301 hosting page section. However, keep in mind that this method requires the visitor's browser to execute JavaScript. If JavaScript is disabled, the redirection may not work.