URL Help please.

Ant

Messages
957
Name
Anthony
Edit My Images
Yes
Right, i'm at the point of wanting to move my URL slightly.

Currently, my website is at www.AnthonyWillett.com/tango but i want this website, as it appears, to come up when the user types in, or clicks a link to www.anthonywillett.com.

So how would i go about doing this? Is it a case of dragging and dropping ALL the files on my FTP client from the /tango folder into the www.anthonywillett.com folder, therefore going up one step?

I'm relatively new to all this website making, so if you want to have a look at the website as it is, go for it and give me some comments. And yes, i know, i've got to re-edit the typing bits, to make it less comma'y.

Thanks.

TBH, i'm only really wanting to sell pictures as i enjoy it, but can't afford the diesel to the venues! So hopefully the revenue is going to cover the cost of the website, and the diesel for getting to the venues. Oh, and the rest can go towards my 1d fund.
 
Hi Ant

Assuming you have PHP on your server (most have), then you can place this as your index.php file in the root of your domain.

<?php header( 'Location: /tango/' ); ?>

... and everytime someone goes to www.anthonywillett.com they will be automatically redirected to www.anthonywillett.com/tango

I wouldn't copy your files to the root, no harm can be done by doing that really, but I tend to leave things in subdirectories.

Hope this helps.
 
You could put in a redirect page.

Make a file called index.php

and copy and paste this into it

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>

<title>Anthony Willett</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<meta http-equiv="refresh" content="1;url=http://www.anthonywillett.com/tango">

</head>



<body>

Website Loading please wait..............................

</body>



</html>

That should redirect anyone going to the root of the site to your main site. :D
 
Ok, when you say the root of the site, where is it in the directory? If the dir looks like this..

filezilla.jpg
 
From that I'd say its the folder called HTML

in mosts sites its called WWW but yours seems to be setup slightly different from the ones I've done before.
 
As theMusicMan suggested, create a file called index.php with the code, and put it in the html folder on your server.

...

Just checked and it looks like you have it working now. :)
 
Back
Top