Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   Help Creating a Redirect.... (https://www.warriorforum.com/programming/7772-help-creating-redirect.html)

Conrado Oliveira 30th August 2008 02:33 PM

Help Creating a Redirect....
 
Hi Warriors,

I'm a little coding noob so I need some guidance. At the moment, my site is under construction so my homepage is very ugly. Right now, when you go to mydomain.com it automatically redirects to mydomain.com/index.php and masks it. I want it to redirect to and mask mydomain.com/underconstruction. Is this as simple as creating a little redirect in my cpanel or do I have to do something else?

Thanks.

Edit: I just noticed this has nothing to do with coding or progamming but I guess it could still stay in this forum because its sorta technical.

Conrado Oliveira 31st August 2008 07:24 AM

Re: Help Creating a Redirect....
 
Thanks for the help!

Aj Wilson 6th September 2008 04:24 AM

Re: Help Creating a Redirect....
 
Hell,

If I was a noob, I seriously wouldn't screw with the .htaccess ...
Instead you could use this :

Code:

<?php
header( 'Location: http://www.YourDomain.com/where-ever-you-want' ) ;
?>

Just rename your current index.php file as "backup-index.php".

Open up notepad and paste the code above, change the domain
name then "save as" index.php

Save and upload.

Now you can use this whenever, wherever you want.
You can even re-direct to affiliate offers off your domains.


All times are GMT -6. The time now is 04:59 AM.