Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 30th Aug 2008, 02:33 PM   #1
New Warrior Member
 
Join Date: 2007
Location: , , .
Posts: 28
Thanks: 0
Thanked 7 Times in 3 Posts
Default
Help Creating a Redirect....
Share on: 
fb share twitter share gplus share more share

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 is offline  
Unread 31st Aug 2008, 07:24 AM   #2
New Warrior Member
 
Join Date: 2007
Location: , , .
Posts: 28
Thanks: 0
Thanked 7 Times in 3 Posts
Default
Re: Help Creating a Redirect....
Share on: 
fb share twitter share gplus share more share

Thanks for the help!
Conrado Oliveira is offline  
Unread 6th Sep 2008, 04:24 AM   #3
Happy Days
War Room Member
 
Aj Wilson's Avatar
 
Join Date: 2007
Location: Melbourne, Australia.
Posts: 408
Thanks: 58
Thanked 105 Times in 66 Posts
Default
Re: Help Creating a Redirect....
Share on: 
fb share twitter share gplus share more share

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.

Aj Wilson is offline  
Closed Thread


Bookmarks

Tags
creating, redirect


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 05:10 AM.