Click to See Complete Forum and Search --> : redirection?


gsja
09-11-2006, 02:42 PM
Hi,

Just joined this site and I suspect that I will be by many times.

Currently, I am using a BSD Unix powered host who manages
their clients using hsphere 2.0. My problem is this.

I wrote a welcome page in html and uploaded it to my ftp site as
the opening page. It's called Welcome.html. I gave everyone the address mydomain.com/Welcome.html. I then wanted to list with several search engines, but before I did that, I wanted to create a pointer that
would open up the Welcome page whenever I typed mydomain.com
into the browser.

I tried to do this myself using the redirection tool on hsphere. I ended up losing access to the domain. I wrote a trouble ticket and a few days later technical support came back and said "it's fixed". It worked exactly
the way I had wanted, but I wondered about future editing.

Now, I wish to edit the opening page, but cannot get the edited version to open by typing mydomain.com. I must append /Welcome.html to bring it up.

I did a "work around" by superimposing text to the a photograph linked to the original Welcome page which directed a person viewing the page to click the first link. Another link later and one would arrive at the new Welcome page. This, of course is unacceptable.

Once again, I had tried (temporary) redirection, only to lose access to the domain. I took the redirection off and got it back (probably cause it was temporary). I've written a trouble ticket requesting a little direction so I can manage this myself, but no answer after over a week.

In the meantime, I have installed LAMP on an old P111 that will become my server once my subscription to the WEB hosting service expires (in about a month) so I can administer the site with root privilages.

I have knowledge of Red Hat Linux and Solaris Unix; (enough to muddle through) and am comfortable writing scripts in bash, csh, sh. It's just a matter of getting back up to speed as Unix administration courses were several years ago and I am out of practice.

Help is appreciated.

gsja

Rulez3200.co.uk
09-12-2006, 07:36 AM
Is the standard one .index. if so make a PHP file called Index.php and put

<?PHP
header("Location: http://mydomain.com/Welcome.html");
?>

That should do what you want. If im totally wrong at what you want sorry.

Mark

gsja
09-12-2006, 11:40 PM
To: Rulez3200.co.uk.

Many thanks for the input!

I'll report back in a day or two as I'm on a paying project with
a deadline right now.

gsja

gsja
09-14-2006, 08:18 PM
Is the standard one .index. if so make a PHP file called Index.php and put

<?PHP
header("Location: http://mydomain.com/Welcome.html");
?>

That should do what you want. If im totally wrong at what you want sorry.
Mark



:)

Mark,

Got it fixed. I was looking for a file called .index (makes sense in a Unix environment). Didn't dawn on me to look at index.html (read about it in the
Apache Cookbook). Just put the HTML code from my new Welcome page into
it and viola! Feel kind of dumb about this, but I kept thinking that there had
to be a simple solution. And you pointed me in the right direction.

Thanks!

gsja