Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Jul 2004
    Location
    Charlotte, NC
    Posts
    31

    Default I hate Yahoo and Google....

    Greets:

    Maybe someone can help me with a rewrite rule. I have both Yahoo and Google looking for links like this one:

    http://www.tdjc.net/index.php/season3/them...mages/down3.gif

    Up to the php, it's PHPNuke, the Season3 is from the old pre-PHPNuke site, and everything after that is PHPNuke.

    Needless to say, it's wrong. But PHPNuke is feeding the search engines (and you if you view the link) a really, really screwed up verson of my home page. It's also making all the links start with that URL above and making things worse.

    Can anyone think of a good rewrite rule that would force the browser/ search engine to http://www.tdjc.net/index.php ?

    thanks,
    -drmike

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    http://www.robotstxt.org/wc/robots.html

    Google is your best friend. Use him and learn.

  3. #3
    Member
    Join Date
    Jul 2004
    Location
    Charlotte, NC
    Posts
    31

    Default

    *smart ass response removed by drmike*
    Last edited by drmike; 08-09-2004 at 12:12 PM.

  4. #4
    Member
    Join Date
    Jul 2004
    Location
    Charlotte, NC
    Posts
    31

    Default

    Quote Originally Posted by Infopro
    Google is your best friend. Use him and learn.
    Infopro, may I kindly suggest you rereading that link you provided. It does not cover the issue I'm discussing. It discusses disallowing subdirectories and the like, not forcing the redirection of search engines or visitors due to bad links. It also would not work in this case as the bad links are trying to call index.php a subdirectory instead of the file it actually is.

    As to learning Google, I use it many times during the day. I find it a rather poor search engine as many of the links within it are outdated or incorrect. Last month one of my sites had over 900+ incoming links from the engine there were at least 3 years out of date.

    As to my orginal question, I came here looking for answers as I've come up empty elsewhere. I would be greatful for any help you can provide.

    -drmike

  5. #5
    Member
    Join Date
    Oct 2001
    Posts
    169

    Default

    Try a 301 code.
    Info here: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html Scroll down the page)

  6. #6
    Member
    Join Date
    Mar 2003
    Posts
    345

    Default

    Why not just setup a redirect in cPanel.

    http://www.tdjc.net/index.php/season...ages/down3.gif

    or in the last directory where down3.gif is stored put in a htaccess file that redirects to the page you actually want people to get to..

    Problem solved.

  7. #7
    Member
    Join Date
    Jul 2004
    Location
    Charlotte, NC
    Posts
    31

    Default

    Quote Originally Posted by icanectc
    Why not just setup a redirect in cPanel.

    http://www.tdjc.net/index.php/season...ages/down3.gif

    or in the last directory where down3.gif is stored put in a htaccess file that redirects to the page you actually want people to get to..

    Problem solved.
    2,000+ pages (not counting graphics) with each page being accessed by at least 7 and at most 22 different ways. (Which means a different redirect for each and every one of those.) If Apache/ CPanel would have taken the wildcat, I wouldn't be having this issue.

    -drmike
    Last edited by drmike; 08-09-2004 at 05:39 PM.

  8. #8
    Member
    Join Date
    Jul 2004
    Location
    Charlotte, NC
    Posts
    31

    Default

    Quote Originally Posted by Peoplespaces
    Try a 301 code.
    Info here: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html Scroll down the page)
    Because for the 301 to work, index.php would have to be a subdirectory, not a working file, and Apache/ CPanel would have to take the wildcat which it won't. Remember, whatever/ whomever is coming into my site is thinking that index.php is a directory.

    What I'm trying now (And this is the third time I've written this. Theres a real short resign-in on this board so I'm not going to rewrite everything yet again) is I renamed index.php into index2.php, told Apache to use that as the default, and created a fake index.php with a reload meta value into index2.php. The search engines hit during the evening. We shall see.

    -drmike

  9. #9
    cPanel Partner NOC cPanel Partner NOC Badge gorilla's Avatar
    Join Date
    Feb 2004
    Location
    Sydney / Australia
    Posts
    736

    Talking

    SOunds all to complicated ,
    just dreate an .htaccess file and put this into it

    --------------------------------------------------
    ErrorDocument 404 http://yourdomain.com/
    AddHandler server-parsed html
    ---------------------------------------------------

    and upload this file into the root directory of your site so ALL errors will be redirected to the url you nominate !

    Hope that helped

Similar Threads & Tags
Similar threads

  1. Does anyone hate progress as much as I do sometimes?
    By wizbang in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 06-03-2008, 01:01 PM
  2. Google & Yahoo Credit
    By tonedoggydogg in forum cPanel Developers
    Replies: 1
    Last Post: 12-16-2007, 01:53 PM
  3. I hate eximstats
    By billyrobot in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 01-23-2005, 03:08 PM
  4. cpanel blocks google and yahoo
    By fistfullast33l in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-07-2003, 09:24 PM
  5. I hate mailman !!!
    By anto in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 11-27-2001, 10:09 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube