Tierra Hosting Guides
Empowering you with knowledge.
Welcome to Tierra Hosting's comprehensive guides page, where you can find step-by-step instructions and valuable insights to enhance your web hosting and domain management experience. Our dedicated team of experts has crafted detailed guides to help you navigate various aspects of web development, control panel functionalities, and more. Whether you need assistance setting up email addresses on mobile or email software, understanding different file types and their limitations, or learning essential PHP functions for web development, our guides have got you covered. Explore our collection of informative posts to expand your knowledge and make the most out of your hosting and domain services.
How to Redirect/Forward a Website (URL redirection)
<html> <head> <title>TITLE OF THE PAGE</title> <frameset cols = "100%"> <frame src ="http://my-best-domain.net" /> </frameset> </head> <body> </body> </html>
Redirect 301 / http://my-best-domain.net/
Redirect 301 /page.html http://my-best-domain.com/newpage.html
- You have changed the file extension?
RedirectMatch 301 (.*).html$ http://my-best-domain.com$1.php
This example is perfect if you have decided to switch from .html pages to .php, keeping the old names of the pages and changing only the file extensions. Now, be careful with this because any .html page there is will be redirected to a page with the same name but with a .php extension, regardless of whether such .php file actually exists.
-
Redirect all www traffic to a NON www version of the site (http://www.my-best-domain.com -> http://my-best-domain.com):
RewriteEngine on RewriteCond %{HTTP_HOST} ^www.my-best-domain.com [NC] RewriteRule ^(.*)$ http://my-best-domain.com/$1 [L,R=301]
-
Redirect all NON www traffic to a www version of the site (http://my-best-domain.com -> http://www.my-best-domain.com):
RewriteEngine on RewriteCond %{HTTP_HOST} ^my-best-domain.com [NC] RewriteRule ^(.*)$ http://www.my-best-domain.com/$1 [L,R=301]
-
You have purchased SSL for your domain and now wish to redirect ALL traffic to an HTTPS version of your site?
RewriteEngine On RewriteCond %{SERVER_PORT} !443 RewriteRule ^(.*)$ https://www.my-best-domain.com/$1 [R]
<META http-equiv="refresh" content="0;URL=http://my-best-domain.com">
<script type="text/javascript"> <!-- window.location = "http://www.my-best-domain.net/" //--> </script>
Recent Guides
- Understanding Image Formats: Choosing the Right Format for Your WebsitePosted: 2023-06-22 21:49:58
- How to Redirect/Forward a Website (URL redirection)Posted: 2023-06-19 23:06:04
- How to add a Catch-All Email addressPosted: 2023-06-10 14:44:30
- What is a MySQL database?Posted: 2023-05-28 20:08:13
- How to Set Up an Email Address on Mobile or Email SoftwarePosted: 2023-04-16 13:17:20
- Understanding File Types: What Can and Cannot be Done with Different File ExtensionsPosted: 2023-04-16 13:00:06
- 5 Essential PHP Functions for Web DevelopmentPosted: 2023-04-16 12:32:23
- Securing Your PHP Code: Best PracticesPosted: 2023-04-15 21:19:21
- Working with Dates and Times in PHPPosted: 2023-04-15 21:07:05
- Basic PHP Functions for Novice Users - Part 3Posted: 2023-04-15 21:02:12
- Basic PHP Functions for Novice Users - Part 2Posted: 2023-04-15 20:55:05
- Basic PHP Functions for Novice UsersPosted: 2023-04-15 20:41:15