Help please?

Sab

I love milfs.
Jun 25, 2011
1,212
136
I switched hosts, from pc host to VPS. I got a domain, and I was wondering how can I make a index.html so when someone gets on the old link it will transfer them to the new link?

Where would I add the Index?
 

Sean

‫‫‫‫‫‫  ‫  Don't Worry, Be Happy
Dec 12, 2011
1,121
405
PC htdocs just create a file called index.php

and have this one line of code:

PHP:
<?php header('Location: LINK TO VPS DOMAIN'); ?>

Then when everyone goes to your localhost on your PC it will automatically send them to the VPS domain
 

Sab

I love milfs.
Jun 25, 2011
1,212
136
PC htdocs just create a file called index.php

and have this one line of code:

PHP:
<?php header('Location: LINK TO VPS DOMAIN'); ?>

Then when everyone goes to your localhost on your PC it will automatically send them to the VPS domain
I did that: this was the link: lool.
 

Gajeel

Well-Known Member
Oct 4, 2011
2,411
413
Worked thanks, didn't work with the .html, but I took it out and worked!
That wasn't the problem.. the problem was, you were linking sharp-hotel.com without http:// so the browser will think it's another directory/file at the same location (site).
Because the page was not a .html file anyways good it worked! and its exactly what I posted?!?!
It was, but I filled in what he needs to paste without hassle. :)
 

Users who are viewing this thread

Top