Go Back   WarriorForum - Internet Marketing Forums > The Warrior Forum > Main Internet Marketing Discussion Forum
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 06-03-2009, 01:31 PM   #1
Senior Warrior Member
War Room Member
 
BJ Min's Avatar
 
Join Date: Jun 2007
Location: Los Angeles, CA
Posts: 1,675
Thanks: 148
Thanked 36 Times in 19 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via Skype™ to BJ Min
Default How do you redirect your site?

hi,

i use frontpage and was wondering how do you redirect
your site?

i want my site to appear in a landing page i made which is not the original
index...i use htm files (frontpage)...

any codes would be appreciated...

thanks
BJ

BJ Min is offline   Reply With Quote
Old 06-03-2009, 01:34 PM   #2
HyperActive Warrior
 
Harry Behrens's Avatar
 
Join Date: Jan 2006
Location: Caracas, Venezuela
Posts: 306
Thanks: 118
Thanked 167 Times in 69 Posts
Contact Info
Send a message via MSN to Harry Behrens Send a message via Skype™ to Harry Behrens
Default Re: How do you redirect your site?

Not totally sure if this is what you mean, but the way I do redirect for a static HTML file is to insert the following tag inside the HEADER section of the webpage:

<META HTTP-EQUIV="refresh" CONTENT="0;URL=http://www.url.com">

The "0; part is the time before redirecting, so if you want it to wait 5 seconds then redirect it would be "5;URL= and so on.

I believe Frontpage lets you go into the page's code with a tab in the editor, so it should be easy to insert from there...

- Harry Behrens
Harry Behrens is offline   Reply With Quote
Old 06-03-2009, 01:41 PM   #3
Senior Warrior Member
War Room Member
 
BJ Min's Avatar
 
Join Date: Jun 2007
Location: Los Angeles, CA
Posts: 1,675
Thanks: 148
Thanked 36 Times in 19 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via Skype™ to BJ Min
Default Re: How do you redirect your site?

thank you...i have just inserted that exact code in my index.htm pages for all my subdirectories...

by the way, i also put that in my ERROR PAGES using CPANEL...

i guess that's pretty much it huh?

bj

ps...when i try to redirect through CPANEL REDIRECT, it doesn't work
for some reason after i put in the code you sent me...if you know why,
please post...if you don't know, thanks anyways!

BJ Min is offline   Reply With Quote
Old 06-03-2009, 02:11 PM   #4
HyperActive Warrior
 
adam123's Avatar
 
Join Date: Apr 2008
Posts: 108
Thanks: 4
Thanked 9 Times in 9 Posts
Default Re: How do you redirect your site?

hey,

just put these into your .htaccess files and you're done:

ErrorDocument 400 /errors/badrequest.html
ErrorDocument 401 /errors/authreqd.html
ErrorDocument 403 /errors/forbid.html
ErrorDocument 404 /errors/notfound.html
ErrorDocument 500 /errors/serverr.html


with these you can handle all type of errors

All the best,
Adam

adam123 is offline   Reply With Quote
Old 06-03-2009, 02:15 PM   #5
DomainProfitsClub.com
War Room Member
 
Gene Pimentel's Avatar
 
Join Date: Feb 2007
Location: Oswego, NY USA
Posts: 2,990
Blog Entries: 1
Thanks: 946
Thanked 1,639 Times in 652 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile 
Default Re: How do you redirect your site?

HOLD ON! The "meta refresh" method is bad for SEO. You should use a permanent redirect. Open notepad. Enter this code:

Code:
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.newdomain.com/page.html");
exit();
?>
Naturally, replace the URL with your own landing page URL. Save it as index.php (not .txt). Upload it to your domain, and you're done. If you have an index.html in the directory, you'll need to remove it.

Gene Pimentel is offline   Reply With Quote
Old 06-03-2009, 02:16 PM   #6
HyperActive Warrior
 
adam123's Avatar
 
Join Date: Apr 2008
Posts: 108
Thanks: 4
Thanked 9 Times in 9 Posts
Default Re: How do you redirect your site?

you can use php redirect too

<?php
header( 'Location: http://www.yoursite.com/new_page.html' ) ;
?>

put these lines to your index.php file and replace the yoursite where you want to redirect
Quote:
Originally Posted by BJ Min View Post
hi,

i use frontpage and was wondering how do you redirect
your site?

i want my site to appear in a landing page i made which is not the original
index...i use htm files (frontpage)...

any codes would be appreciated...

thanks
BJ

adam123 is offline   Reply With Quote
Old 06-03-2009, 02:19 PM   #7
Watching you...
War Room Member
 
Istvan Horvath's Avatar
 
Join Date: Dec 2008
Location: Waterdown, Ontario, Canada
Posts: 5,982
Blog Entries: 2
Thanks: 1,575
Thanked 2,719 Times in 1,656 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via Skype™ to Istvan Horvath
Default Re: How do you redirect your site?

You can not place it anywhere - it has to be in the "head" section of your html site, i.e. between the <head> and </head> tags.

Just a side note: this kind of redirect is seen by search engines as temporary redirect... and in most cases what people want would be a permanent (301) redirect.

Read more why you should NOT use meta refresh:
301 redirect - Google Search

In the first half of the year we are supposed to work for the taxman. I think that's a mistake.
Help me to get rid of the taxman ASAP - thanks! (You, too, should make less mistakes!)


Istvan Horvath is offline   Reply With Quote
Old 06-03-2009, 03:04 PM   #8
HyperActive Warrior
 
Harry Behrens's Avatar
 
Join Date: Jan 2006
Location: Caracas, Venezuela
Posts: 306
Thanks: 118
Thanked 167 Times in 69 Posts
Contact Info
Send a message via MSN to Harry Behrens Send a message via Skype™ to Harry Behrens
Default Re: How do you redirect your site?

Quote:
Originally Posted by Gene Pimentel View Post
HOLD ON! The "meta refresh" method is bad for SEO. You should use a permanent redirect. Open notepad. Enter this code:
You know, I had read about this, so I was aware of it, but somehow my mind just completely blanked it out when I read/replied to this thread. Good catch.

- Harry Behrens
Harry Behrens is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > The Warrior Forum > Main Internet Marketing Discussion Forum

Tags
redirect, site

Thread Tools

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 12:16 AM.