Site redirect

Cfdesign

New member
Joined
May 28, 2013
Messages
7
I would like to permanently redirect the site that I have built. I built it under www.bayareahayandfeed.com/home and I would like it so that users who just go to www.bayareahayandfeed.com get to the site (right now, they'll get an error if they go there). I have tried the re-direct site feature and can't seem to get that to work, as that seems to be the easiest option. I guess my other option would to move data and folders around? That seems scary because I don't want to accidentally lose the site or data (even though I did do a backup, I am not sure exactly what was backed up, the site is otherwise done, don't want to re-do!)
Thank you.
 
You should just use an index.php that reload with correct path...

Code:
<?php

header("Location:home/index.html");

?>

Regards
 
Thanks, I am not really a coder, so answer is kind of complicated for me... The site is on the Wordpress platform.


You should just use an index.php that reload with correct path...

Code:
<?php

header("Location:home/index.html");

?>

Regards
 
I don't even know where to put that code...
Shouldn't I just be able to use the admin interface and do a re-direct?
 
In a index.php file that you have to upload via ftp in public_html folder.

Sorry, i dont know how be clear more than this and no, you cant do that from directadmin panel.

Regards
 
I don't even know where to put that code...

Create an empty index.php file (html template not checked), see this http://site-helper.com/filemanager.html#files
and put there suggested content and save it.

Shouldn't I just be able to use the admin interface and do a re-direct?

You can user directadmin interface to create redirects, but not in your particular case, when you want to redirect / to /home/. But if you'd like to redirect all requests from /home/ to / then it would be OK to use built-in functionality for creating redirects.
 
Won't you run into 500 error (looping) if you redirect from / to /home/ with .htaccess. I guess you will. So either mod_rewrite should be used, or index.php/index.html file.
 
Create an empty index.php file (html template not checked), see this http://site-helper.com/filemanager.html#files
and put there suggested content and save it.



So I tried creating the index.php file and index.html file with the suggested content and I am still getting a 404 error. Did I get the content right, or is there something else I need to do? Thanks for the help.
Code:
<?php

header("Location:home/index.html");

?>
 
Like this?
Code:
<?php

header("Location:http://www.bayareahayandfeed.com/home/index.html");

?>
It didn't work?
 
Last edited:
(You should know where your home page is located, and what kind of index file it is using. I am surprised that you don't.)
We all started somewhere, but I agree.

Like he says, he isn't a coder but even so, everyone should know the basics of design when engaging in web hosting, even when using a CMS.

FWIW, I dislike CMS systems, it takes the whole point of web design.
 
Thank you everybody for helping me. I had the index.php file I created in the wrong folder, but I figured it out. Thanks again.
 
Back
Top