![]() | | ||||||||
| | #1 |
| Senior Warrior Member War Room Member Join Date: Jun 2007 Location: Los Angeles, CA
Posts: 1,675
Thanks: 148
Thanked 36 Times in 19 Posts
|
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 |
| | |
| | |
| | #2 |
| HyperActive Warrior Join Date: Jan 2006 Location: Caracas, Venezuela
Posts: 306
Thanks: 118
Thanked 167 Times in 69 Posts
|
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
| |
| | |
| | #3 |
| Senior Warrior Member War Room Member Join Date: Jun 2007 Location: Los Angeles, CA
Posts: 1,675
Thanks: 148
Thanked 36 Times in 19 Posts
|
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! |
| | |
| | |
| | #4 |
| HyperActive Warrior Join Date: Apr 2008
Posts: 108
Thanks: 4
Thanked 9 Times in 9 Posts
|
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 |
| | |
| | |
| | #5 |
| DomainProfitsClub.com War Room Member Join Date: Feb 2007 Location: Oswego, NY USA
Posts: 2,990
Blog Entries: 1 Thanks: 946
Thanked 1,639 Times in 652 Posts
|
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();
?> |
| | |
| | |
| | #6 |
| HyperActive Warrior Join Date: Apr 2008
Posts: 108
Thanks: 4
Thanked 9 Times in 9 Posts
|
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 |
| | |
| | |
| | #7 |
| Watching you... War Room Member 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
|
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!) | |
| | |
| | #8 |
| HyperActive Warrior Join Date: Jan 2006 Location: Caracas, Venezuela
Posts: 306
Thanks: 118
Thanked 167 Times in 69 Posts
| 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
| |
| | |
![]() |
|
| Tags |
| redirect, site |
| Thread Tools | |
| |
![]() |