Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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.

share|improve this question

3 Answers 3

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!

share|improve this answer
    
so it's not possible without editing the .htaccess... –  Bakaburg Aug 4 '12 at 17:32

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.

share|improve this answer
    
there are two problems with this. This location doesn't exist anymore, and then the url was written in a very old fashion way, pointing to an html file, so no php. –  Bakaburg Aug 3 '12 at 17:15
    
@Bakaburg You could create the file (old-file.html ), then add .html to the types that are parsed as PHP. –  choster Aug 3 '12 at 18:58

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.

share|improve this answer
    
it's just a page, not the whole domain –  Bakaburg Aug 4 '12 at 17:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.