Depending on the type of URL redirects that you want to have, there are various methods through which you can redirect from one page to another.
1. Redirects via DNS settings
If you want your visitors to access your landing pages without needing to type 'www' or 'mysubdomain' in front of the domain, you will need to set up a 301 redirect in your DNS settings. You can follow the instructions for this in our article here: https://d.pr/aGskA6.
The same can be applied if you want to redirect them from one subdomain to another, for example, from promo.domain.com to www.domain.com. This will need to be checked with your registrar to see the exact options they offer.
2. Redirects via code
In this case, please keep in mind the following:
- Your landing page will have to remain published for this method to work;
- The redirect is not instant;
- Meta refresh redirects are not the best for SEO - if possible, a 301 or 302 server-side redirect is always preferred because search engines handle them better;
- Ad Platforms Considerations – if you’re using this for paid ads, ensure the ad platform allows meta-refresh redirects, as some might flag them.
Add the following code to the HTML/CSS >> Head section inside the builder:
You would need to change "https://newurl.com/" with your own URL, where you want the visitors to be redirected.
3. Redirects via Drupal and WordPress
For websites managed through content management systems (CMS) like Drupal or WordPress, there are plugins and modules available to simplify URL redirection.
-
WordPress: You could use plugins like "Redirection" or "Simple 301 Redirects."
-
Drupal: You could install the "Redirect" module to manage URL redirects from the admin panel.
These tools allow you to set up 301, 302, and other types of redirects without editing server files directly.
4. .htaccess File Redirects (For Self-Hosted Websites)
If you're using your own web hosting instance, you can configure URL redirects by editing the .htaccess file located in your website's root directory.
You can check out more details about this on this website: https://d.pr/UJFOeX but we recommend discussing it with your hosting provider/a developer.