Website Redirect

These are various ways that you can use to redirect a website/URL to another website/URL:

  • Conventional Redirect
  • Using an in-line frame
  • Frame redirect using .htacess
  • Redirect through cPanel
  • Redirect through Account Manager

Conventional Redirect

First, create a file, index.php. Second, place the contents below inside index.php


<?php header(“Location: http://www.vpslot.com“); ?>

Lastly, change the URL to the desired URL required.

Using an in-line frame, or an invisible frame

(Loads within the same domain)First, create a file, e.g. index.html. Next, place the contents below inside that file.


 

<html><head>

 

<title></title></head>

<frameset rows=’100%, *’ frameborder=no framespacing=0 border=0>

<frame src=”https://www.vpslot.com” name=mainwindow frameborder=no framespacing=0 marginheight=0 marginwidth=0></frame>

</frameset>

<noframes>

<h2>Your browser does not support frames. We recommend upgrading your browser.</h2><br><br> <center>Click <a href=”http://www.vodien.com”>here</a> to enter the site.</center>

</noframes></html><html><head>

 


 

This example uses http://www.vpslot.com as the URL. Simply change this URL to your desired URL for this to work in your case.

Frame Redirect using .htaccess

Step 1. Create or edit .htaccess file.

Step 2. Add the following (make sure to replace vpslot.com and 2vpslot.com with your actual domain names or URLs):

When the URL http://vpslot.com/ is accessed through in a browser, it copies or shows the content of the website http://2vpslot.com/ without the URL being modified.

Redirect domain name via cPanel.

Step 1. Log in to the cPanel

 

Step 2. Click Redirects under Domains panel.

 

Step 3. There are 2 types Permanent (301 Redirect) and Temporary (302 Redirect). You may choose any of the two depending on how you want the search engine to recognize the site. For 301, this means that the website has fully transferred already to the forwarding URL. While 302 means that this is only temporary or the real website might be under maintenance. 

Step 4. Choose on the domain name under http://(www.)? . There may be an instance that the certain URL is under a subfolder.  You may need to enter the folder name. 

Step 5. Type in the forwarding URL  where you want the domain name to be redirected under Redirects to field. Always make sure that http:// or https:// is part of the complete URL. Choose on the redirection.

Step 6. Click Add button to save the changes.

Website Redirection through Account Manager

If your domain name is registered with Vodien and you want to redirect it to a different URL, you may use the DNS Settings in the Account Manager. This is only applicable if the domain name is using Vodien’s name servers:

Step 1. Log in to your Account Manager.

 

Step 2. Click ‘Domains’.

Step 3. Choose the domain that you wish to add the website redirection.

 

Step 4. Locate External Editor DNS and click “Manage DNS”.

You will be redirected to the DNS page of your domain name. Scroll down to the bottom and locate Configure 3rd party DNS template.

 

Step 5.  Click Website Redirection.

 

Step 6. Enter the ‘Redirect Url’.

Step 7. If you have a hosting account associated with the domain name or using other A record, you will see a warning “There is an existing record”. Tick the checkbox ‘Tick to keep the record’ if you want to keep it. Leave it unchecked if you wish for the DNS to be overwritten.

 

Step 8. Click ‘update’.

  • 0 Utenti hanno trovato utile questa risposta
Hai trovato utile questa risposta?

Articoli Correlati

How to replace the Under Construction page of my website?

By default, our system automatically creates a placeholder Under Construction page for you at...

How to access my hosting control panel?

To access your hosting control panel for managing your Website and email, please use the link:...

How to set up cron job in cPanel?

Cron job is a time-based scheduler that allows you to automate certain commands or scripts on...

Differences Between Shared vs VPS vs Dedicated Hosting

Shared vs VPS vs Dedicated Hosting There are three main types of hosting plans available for...

How to set up cPanel app on Android

The cPanel app is now available on mobile devices which can be used for cPanel, WHM, and Webmail...

Powered by WHMCompleteSolution