Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
CJ Webmaster Forums Forum Index » HTML

Post new topic   Reply to topic
NEED HELP WITH A REDIRECT
View previous topic :: View next topic  
Author Message
phasar



Joined: 20 Apr 2005
Posts: 18
Location: Ottawa, Ontario, Canada

PostPosted: Mon Nov 07, 2005 8:12 am    Post subject: NEED HELP WITH A REDIRECT Reply with quote

I used to use a free webhost before I finally registered a URL and started paying for hosting over a year ago. All of the pages on my old site have a notice saying the site is no longer being supported with an automatic redirect after ten seconds to my new site. My stat counter is still hooked to those pages, and it is still getting the majority of the hits. Most of my hits are coming through Yahoo and according to Yahoo, if you have a redirect it will stop cataloging the old site. This does not seem to be the case.

Can someone tell me if there is a way to delete the entire site, except for an index page, with a redirect that will go to the new URL, regardless of the page the link is trying to access.

For instance, if the search engine link is trying to go to www.mysite.com/recipes/bread.html it goes to www.mysite.com/index.html and is redirected to the new site, or it goes to www.mynewsite.com/recipes/bread.html. The problem is that I do not want the users to get a 404 error. I want them to go to the new site.

And I want Yahoo to stop listing the old site. I list the new site with yahoo every 3 months and I am getting over 10,000 hits a day, mainly through Yahoo, except they are mainly through the old site.

Thanks for any help you can provide.

Sincerely
Frank
_________________
I once boiled a hyena in water and made myself a laughing stock!
Back to top
View user's profile Send private message Visit poster's website
PHPMaster89



Joined: 16 Jul 2005
Posts: 16

PostPosted: Mon Nov 07, 2005 3:29 pm    Post subject: Reply with quote

Hi,

Good idea on getting a paid webhost Wink In the long run they're just the best way to go.

I think what you're looking for is this JavaScript code:

Code:
<SCRIPT LANGUAGE="JavaScript">
http://www.mynewsite.com/";
</script>


Place that inbetween the "<head>" tags on all your old site pages. It will then redirect all traffic to your new site, and you'll be all set.

Hope that helps,
Back to top
View user's profile Send private message
jackdaniels



Joined: 07 Nov 2005
Posts: 2
Location: Italy

PostPosted: Mon Nov 07, 2005 11:17 pm    Post subject: Reply with quote

If the freehoster allows you to make custom 404s you can redirect each request to your new site using something like this:

<meta http-equiv="Refresh" content="0;URL=http://your-new-site.com" />


If it doesn't allow custom 404s you should edit every old file and add a redirection...
Back to top
View user's profile Send private message Visit poster's website
PHPDUMMY
CJ-Design.com Moderator



Joined: 09 Mar 2005
Posts: 515
Location: South East Kentucky,U.S.A.

PostPosted: Tue Nov 08, 2005 2:05 am    Post subject: Reply with quote

i agree with jackdaniels method , as it is standard and is acceptable by the majority of web-browsers.
the other option given " using a javascript " is kinda bad business , I personally don't permit javascripting to occur unless its by a trusted web-site...... im not the only one (hint)..
_________________
Cheers,
Danny
C-J Search Engine All Tidied Up V4.0http://www.cj-design.com/forum/viewtopic.php?t=1820

C-J Search Engine MySQL !http://www.cj-design.com/forum/viewtopic.php?t=1555
Back to top
View user's profile Send private message
phasar



Joined: 20 Apr 2005
Posts: 18
Location: Ottawa, Ontario, Canada

PostPosted: Tue Nov 08, 2005 6:58 am    Post subject: Reply with quote

Thanks for all the good advice. I used the java method and it's working great. Wink
_________________
I once boiled a hyena in water and made myself a laughing stock!
Back to top
View user's profile Send private message Visit poster's website
PHPDUMMY
CJ-Design.com Moderator



Joined: 09 Mar 2005
Posts: 515
Location: South East Kentucky,U.S.A.

PostPosted: Tue Nov 08, 2005 10:25 am    Post subject: Reply with quote

Java scripting does work great , for the visitors which permit scripts to run that is.
_________________
Cheers,
Danny
C-J Search Engine All Tidied Up V4.0http://www.cj-design.com/forum/viewtopic.php?t=1820

C-J Search Engine MySQL !http://www.cj-design.com/forum/viewtopic.php?t=1555
Back to top
View user's profile Send private message
jackdaniels



Joined: 07 Nov 2005
Posts: 2
Location: Italy

PostPosted: Tue Nov 08, 2005 12:56 pm    Post subject: Reply with quote

Yes, Javascript should not be used for these things...
5-10% of web users have it disabled
Back to top
View user's profile Send private message Visit poster's website
darkcarnival
CJ-Design.com Moderator



Joined: 10 Jul 2003
Posts: 1213
Location: Michigan

PostPosted: Tue Nov 08, 2005 2:43 pm    Post subject: Reply with quote

just to let you know when you get a domain name if a user goes to a certain page it will probabley go to a 404 Wink

but this issue might be different for you than what i had.

cause i had a paid host for a while now and i first just got the service and they gave me a sub-domain. after i got the money for the domain i told the people there to have my sub-domain auto-direct to the domain. and they did it, but if you entered a exact page: my.site.com/page2.htm it would pop-up a 404 error but if you did my.site.com it would go to the new domain Wink

just some knowledge for ya for when that issue happens like that Wink

but js is a nice way to go and a few peolpe do disable it but not too many to be honest Wink
_________________
List of Mods to James Scripts!
http://www.cj-design.com/forum/viewtopic.php?t=1798

Elite Bulletin Board, comming soon!
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
phasar



Joined: 20 Apr 2005
Posts: 18
Location: Ottawa, Ontario, Canada

PostPosted: Tue Nov 08, 2005 6:54 pm    Post subject: Reply with quote

Sorry but most of the replies are not relevant. The free host I used over a year and a half ago used their own 404 pages. Which was part of the problem. Every second or third page you tried to go to you got a 404 error. Of course it was loaded with advertising and popups. But if you tried the link a second time it would work. For a while they were even putting sypware on peoples computers. And on top of that, I have a recipe website and I did not think the porn popups were suitable to my content.

I then moved to Sneni Solutions as a paid provider. Terrible customer service and their servers were down for 3 months when they got hacked.

The new paid host I just changed to, Total Choice, is working great, although their customer service sucks and I have some billing issues with them. They just took another years subscription out of my account via paypal and my billing period doesnt end until July. And they do some pretty strange accounting there. But at least they don't go down. I'll be looking for a new host to move to though.

The java script seems to be working fine. I haven't noticed any more hits to the old pages since I uploaded it.

thanks for all the help everyone.
_________________
I once boiled a hyena in water and made myself a laughing stock!
Back to top
View user's profile Send private message Visit poster's website
PHPMaster89



Joined: 16 Jul 2005
Posts: 16

PostPosted: Tue Nov 08, 2005 7:30 pm    Post subject: Reply with quote

If you're looking for a good quality host with great customer service (and a decent price, too!), you should check out FatCow: www.fatcow.com

I have 3-4 of my sites hosted there, and I've never had a problem with them. And whenever I've had a question about something, I get a reply in less than 2-3 hours.

You should give it a try
Back to top
View user's profile Send private message
phasar



Joined: 20 Apr 2005
Posts: 18
Location: Ottawa, Ontario, Canada

PostPosted: Tue Nov 08, 2005 7:42 pm    Post subject: Reply with quote

Unfortunately they are charging double what I am paying now for the same features
_________________
I once boiled a hyena in water and made myself a laughing stock!
Back to top
View user's profile Send private message Visit poster's website
darkcarnival
CJ-Design.com Moderator



Joined: 10 Jul 2003
Posts: 1213
Location: Michigan

PostPosted: Tue Nov 08, 2005 9:16 pm    Post subject: Reply with quote

I also know of a great host that is low in price.

http://ocssolutions.com

I'm hosting there atm and I've been there since the owner(Robert) had a free hosting service back in 2003 and i have in the whole time being there only had 2 blackouts(and that was only during the free service times).

i also know of another great host that has a great free hosting account and a even better paid account.

http://clubhostcity.com

both companies used to work together so i recommend both highly Wink

like i said above once you get a domain name when you have the old address re-direct it will only redirect the index file and nothing else unles you personally add a redirect code to every single page Wink

but another advice i would give you is to never pay yearly, always do monthly Wink that way if you hate the service its only for a month Wink I think i have said that before on this forum and a few 100 others Wink
_________________
List of Mods to James Scripts!
http://www.cj-design.com/forum/viewtopic.php?t=1798

Elite Bulletin Board, comming soon!
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
phasar



Joined: 20 Apr 2005
Posts: 18
Location: Ottawa, Ontario, Canada

PostPosted: Tue Nov 08, 2005 9:38 pm    Post subject: Reply with quote

THanks, I'll check those hosts out.

I've had a domain name registeres and I've been using for a year and a half

www.franksrecipes.com
_________________
I once boiled a hyena in water and made myself a laughing stock!
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    CJ Webmaster Forums Forum Index » HTML All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional, Mods by CJ Website Design