Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
Old domain 404 error and htaccess
Old 08-06-2011, 05:59 AM Old domain 404 error and htaccess
ultra's Avatar
Webmaster Talker

Posts: 636
Name: jasdeep
Location: World Citizen
Trades: 0
I bought an old expired domain for the first time. Now the problem is google webmaster is showing me certain pages as 404 error which were on the old site for some pages which were on root i used

ErrorDocument 404 /404notfound.php

and they worked fine but my problem how to redirect pages like

/get_damnit/DAMNIT.html
/remedy/

I am unable to find any code to use in htaccess. Should i use

redirect 302 /remedy/ http://www.xyz.com/404notfound.php

but i m sure this is wrong.

What should i do handle these 404 errors at a directory level.

My second problem is I have redirected

http://domainname.com to http://www.domainname.com/
http://www.domainname.com/index.html to http://www.domainname.com/

but

http://domainname.com/index.html is being redirected to http://www.domainname.com/http://www.domainname.com/

Jasdeep
__________________
I Love You All
ultra is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-06-2011, 06:08 AM Re: Old domain 404 error and htaccess
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
This is server management NOT SEO.

Just let them stay as a 404 response, after all, that IS quite correct if the pages are no longer there.

Next question
No, it will NOT affect your "SEO"!!

You CANNOT redirect the index page to the root because it IS the index page that is served out for root requests.
See this thread specifically post #8
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-06-2011, 06:20 AM Re: Old domain 404 error and htaccess
ultra's Avatar
Webmaster Talker

Posts: 636
Name: jasdeep
Location: World Citizen
Trades: 0
Thanks chrishirst for the quickest reply as always.

For the first part
Ok i will leave the directories not found to 301 redirects

But for the second part i have already redirected index to root

ie http://www.abc.com/index.html to http://www.abc.com/

but i m not sure how to redirect

http://abc.com/index.html to http://www.abc.com/

And you may move it to correct category if you want.
__________________
I Love You All
ultra is offline
Reply With Quote
View Public Profile
 
Old 08-06-2011, 06:31 AM Re: Old domain 404 error and htaccess
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
but i m not sure how to redirect

http://abc.com/index.html to http://www.abc.com/
You don't do both, if you have already redirected the non www then adding in the index page redirect will cause a locked redirect loop.

Read the HR thread in the linked post or go directly to it (do not pass go, do not collect $200), and you will find the .htaccess directives for both redirects in four lines of code with NO loops.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-06-2011, 06:34 AM Re: Old domain 404 error and htaccess
ultra's Avatar
Webmaster Talker

Posts: 636
Name: jasdeep
Location: World Citizen
Trades: 0
Thanks again man I need to create an account to view the thread which i will do.

Jasdeep
__________________
I Love You All
ultra is offline
Reply With Quote
View Public Profile
 
Old 08-06-2011, 06:40 AM Re: Old domain 404 error and htaccess
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
The code is also here
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Old domain 404 error and htaccess
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.17556 seconds with 12 queries