Help Creating a Redirect....

3 replies
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.
#creating #redirect
  • Profile picture of the author Conrado Oliveira
    Thanks for the help!
    {{ DiscussionBoard.errors[68320].message }}
    • Profile picture of the author Aj Wilson
      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.
      Signature
      {{ DiscussionBoard.errors[83575].message }}

Trending Topics