As of 2025, please go to stuff.davidaugust.com, my newer blog. See you there!

Showing posts with label godaddy. Show all posts
Showing posts with label godaddy. Show all posts

Saturday, August 29, 2009

Redirecting Web Pages Using PHP

You can redirect the root level of your site http://www.example.com/ to a lower level webpage like http://www.example.com/directory1/directory2/filename.html ) in many ways.

One way to make such a redirection, if you have a Linux hosting plan with GoDaddy, is to make a text file named "index.php" and have the file contain:

 <?php
//Redirect browser
header("Location: http://www.example.com/directory1/directory2/filename.html");
?>
 

Place it in the root of the "web/" directory in your hosting space and, barring a lot of complex configuration changes that may have been made previously, it should gentle redirect web visitors from http://www.example.com/ to http://www.example.com/directory1/directory2/filename.html .

Wednesday, February 27, 2008

Hosting iWeb sites on GoDaddy

A website made with Apple's iWeb can be hosted anywhere you want. To host it on GoDaddy, I suggest:

  1. Get a copy of Fetch (or another FTP program).
  2. Under the file menu in iWeb, choose to "Publish to Folder" and publish to a new folder (one with nothing in it yet, probably on your desktop so it's easier to find later).
  3. Using your domain as the hostname, (e.g., example.com) and your hosting username as the username (note that it's not your GoDaddy customer number/name, it's your hosting account username) log into your web hosting directory with Fetch by choosing "Open New Connection" under Fetch's file menu (it should open at the root level of your hosting space, which is where you want to upload your iWeb site).
  4. Either delete or change the name of the "welcome.html" file GoDaddy has in your web hosting directory.
  5. On your computer, select all of the files and folders inside the folder you published your iWeb site into and drag and drop them into the fetch file window.
  6. After the files/folders finish uploading, use your web browser to check and make sure your site is online and working.

To update/add to your site, the easiest, and most consistent, way is to make your changes in iWeb, and then repeat the above steps (i.e., republish the whole thing); this should avoid updating only some of the files that make up your site.

Note: Read the comments, they may already answer your question. If your question is not about iWeb made sites hosted with GoDaddy, please either comment a different appropriate post, or contact me directly to discuss custom consultation.