Url redirect in dreamhost without editing htaccess

Url redirect in dreamhost without editing htaccess - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the Url redirect in dreamhost without editing htaccess error on your web browser. Problem :


We have a network of sites with an old link to a URL that doesn't exist anymore. We would like to redirect all the traffic to this URL to the new website, while we correct the old link in all the network sites.



Since we are a student organization, I cannot be sure that whoever will come after me will have the same technological knowledge as me, so I don't want to code the redirect in the .htaccess.



Instead I was wondering if there was another way to do this using the Dreamhost control panel, since we host our site there.



Until now though, I didn't find the way to do a redirect for a single URL, but just for a whole domain.


Solution :

To redirect a domain to another from the panel, you'd head to your Domains > Manage Domains page click "Edit" next to the domain there. There's a redirect option on the next page.



To redirect only a specific page to another domain/url, a PHP redirect is your best alternative to using .htaccess:



http://wiki.dreamhost.com/PHP_Redirect



Reach us at Support > Contact Support in your panel if you have any trouble!



I think having a file in the location would be a logical place for them to check if they're not aware of re-writing.



old-page.php:



<?php
header("Location: new-page.php", 302);
?>


302 being a Redirect Temporary. Other response codes are listed in at W3C - HTTP1/1 Status Code Definitions.



If it is a top level domain, then you could use a domain forwarder from the company your purchased the domain from.



Not familiar with Dreamhost, but from my experience with cpanel, there should be a section with the header domain and under it should be something like redirect.


Let's have a look at the example 1 - Redirect example.com to www.example.com. The first line tells apache to start the rewrite module. The next line:

We hope that this article has helped you resolve the redirects, dreamhost, error in your web browsers. Enjoy browsing the internet uninterrupted!

Comments

Popular posts from this blog

How to redirect to any domain [duplicate]

"302 found" for index page bad for SEO?

Create redirect from url like www.example.us/?p=100&option=