Home Popular Articles

Popular Articles

By Kamelia H.
4 articles

URL redirection

How to redirect your domain to another website or your social media page. URL redirection or URL forwarding is a system that directs one domain name to another. For example, when you search wikipedia.com or wikipedia.net, it is automatically redirected to wikipedia.org. Redirection is useful for a variety of reasons, such as: - if you have several domains but only one website, redirect them all to it - send your customers to your social media account while you're building your website - shortening your URL - to prevent broken links when web pages are moved Below are instructions on how you can redirect your domain, or specific pages within your website, to another URL. There are several different methods you can use to achieve this based on what kind of hosting you have. Please select from the below based on what service you have with us: - I have Domain Manager or Cloud Hosting - I have cPanel or WordPress Hosting - I have a Cloud web hosting account If you do not have Domain Manager or a web-hosting service (like cPanel or Cloud) you will not be able to set up URL redirection from inside your account. URL redirection for Domain Manager and Cloud Hosting Our Domain Manager and Cloud Hosting (no longer sold) plans include a service called URL Redirection. This allows users to point their domain to another URL. To set up URL redirection, follow these instructions: Log in to your account Click Manage next to the domain you want to make changes to On the next page, look for Domain Name, if your domain has a product that supports redirection there will be a Domain Redirector menu option beneath it In the Redirecting URL field type the URL you wish to redirect your domain name to, and then select [Update redirection] We recommend turning cloaking Off Please note, for our redirection service to work either your Name Servers need to be pointing to us or you need to have the A record (202.124.241.178) added to your DNS host (the company your Name Servers are pointing to). Enable cloaking Cloaked redirection hides the fact that the user is being redirected. For example, if a visitor goes to www.example.com and that domain name is using cloaked redirection to redirect the visitor to www.my-free-website-with-a-long-domain-name.com/user1234/profile0.html, they won't know. When they look at their browser, the title of the page they are on will continue to show www.example.com. Although this type of redirection is useful, we don't recommend it. The downside of using cloaked redirection are: - Users will not be able to bookmark specific pages on your website - Your ranking on search engines may suffer - If your website uses an SSL certificate, you may not be able to redirect to it properly - Some sites will not load if cloaking is enabled Disable cloaking We recommend users disable cloaking. When cloaking is disabled, a 301 redirect will be performed. This means when a visitor goes to www.example.com, the URL in their browser will simply update to the URL they are being redirected to. The visitor will know they're being redirected and will usually start using the new URL when they want to visit again. This method of redirecting is more search engine friendly and allows visitors to bookmark specific pages within your website. URL redirection for cPanel hosting For more information on how to use the redirection options within cPanel, refer to the documentation available on the Redirection page within cPanel. To get to this page in cPanel, as well as how to add in a redirection, follow these instructions: 1. Log into cPanel 2. Click on the Redirects icon 3. Select the domain as well as file or path you wish to redirect from 4. Type in the URL that you wish to redirect to 5. Select from the available parameters 6. Click [Add] URL redirection using website code for Cloud hosting services If you have a web hosting space for your domain name, there is a number of different methods of URL redirection that you can use. Using website code, website developers are able to redirect specific pages or entire websites from one URL to another. Below are examples of code that can be used to perform 301 redirections from one URL to another. 301 redirect using PHP Create a .htaccess file (example: index.htaccess) and add the code below. When this is added to your website, any visitors to that file will be redirected to the URL that is entered into the code below. Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://www.new-url.com"" ); ?> 301 redirect using .htaccess Create a .htaccess file with the below code. RewriteEngine on RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L] Place the .htaccess file into your root directory. The above code will redirect all visitors to the site where the .htaccess exists to the new URL you enter into the .htaccess file. Redirect non-www to www via .htaccess Create a .htaccess file with the below code and change yourdomain.com to your domain name RewriteEngine on RewriteCond %{HTTP_HOST} ^yourdomain.com [NC] RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L] Place the .htaccess file into your root directory. The above code will redirect your domain to its www record. Note: the above is a guide only.

Last updated on Jul 23, 2024

Understanding DNS

This is a general overview on how the Domain Name System (DNS) works, for specific instructions on updating DNS records on your domain name see our support articles for Cloud and cPanel. Or to manage DNS with a different provider see how to modify nameservers. When you type in a domain name to your web browser or e-mail client, it has to connect with your web hosting or email service.  For this to happen, the domain name must be registered and pointed to the correct servers, which occurs through the Domain Name System. The Domain Name System translates host names such as www.netregistry.com.au into IP addresses (216.3.128.12), which are assigned to servers, that hold data information such as a website or email service. In order for a domain name to find its corresponding website or email service, it must be delegated to a name server. Every name server contains a zone file, which contains zone records. These are used to translate domain names into IP addresses, which represent the computer servers that host your website or email service. Why isn't the domain name I'm typing in connecting to a website? There are several reasons why a domain name isn't connecting to a website or email service. These can include: - The domain name has expired - The domain name doesn't exist/has been misspelled - The domain name is delegated to a name server that doesn't hold accurate zone files - The domain name is pointed to the correct service but something is wrong with the service For a domain name to open a website, all three parts (the domain, name server/zone records and the website/email service) must be functioning correctly and connected to one another. My domain name isn't loading my website, help! If you are currently experiencing some issues with your domain name and you believe it may be DNS related, follow the steps below to ensure everything is setup correctly. 1. Perform a Whois lookup against your domain name. (bottom of the page) - Has it expired? - Who is the Registrar? - Is it delegated to the correct name servers? 2. If it's delegated to the wrong name servers, modify your domains name servers. 3. Double check that your zone file has accurate zone records. If you're unsure of what the problem might be, don't hesitate to contact our support team, who will be able to investigate your issue further. What does each zone record do? For an email or website hosting service to function alongside a domain name, the domain name requires a zone file. Within your domains zone file, there are several different kinds of zone records and each record serves a specific function. Below is a table describing each type of record that exists within your domains zone file and how you can use them. You do not need to add all of these to your domain for it to work, however you may find you need to add extra records later down the track. Depending on what type of subscription service you have with us, the tools you use to manage your domains zone file may differ. Or to manage DNS with a different provider see how to modify nameservers. If you have any issues updating or editing your zone records, don't hesitate to contact our customer service team for further assistance.

Last updated on Jul 23, 2024