SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: orphan pages

  1. #1
    SitePoint Member
    Join Date
    Dec 2013
    Location
    Seattle, Wa.
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question orphan pages

    Hi Everyone

    Have a question for you but first little background on the website I am redoing.

    The site is over 500 pages going back over a decade. The site itself is pretty completed now and works fine but I know we have anywhere from 50-100 orphan files kicking around in the directory. I even know what files MIGHT be orphans but being the site is so large it is hard to near impossible to determine if these pages are linked or not to the main parts of the site. The might be inter connected but might not be linked into from the main pages if that makes sense. So technically they night not be orphan pages being they might have links into them but orphaned in the sense that if you came into the site as usual through the home page you would never know they are there.

    The site uses PHP code to pull up text files that are in the text folder. These text files contain ONLY the meat of the site the sidebars and header/footers are all part of a basic template for the site but the text mainly is the info displayed in the main viewing area on the left side of site

    The short code below is something a friend wrote up for me as I honestly don't really understand PHP except PHP Includes so bare that in mind with any replies that it has to be a dummies type answer HA HA

    Code:
    <?php
    $fileurl = "";
    $var = $_GET['categories_file'];
    if(!isset($var)) {
    include "text/index.txt";
    }
    else {
    $fileurl = "text/" . $var . ".txt";
    include $fileurl;
    }
    ?>
    The links would look like this with the file name of the text file I need pulled up at the end of the link

    index.php?categories_file=Lolita

    So what I need to know is this. Is there an easy way to have either a script or a program scan the entire directory structure and then determine if a page is or is not linked to the main area even if a file is linked into another orphaned file???

    Thanks
    Dave
    Last edited by cpradio; Dec 3, 2013 at 10:59. Reason: removed unnecessary links

  2. #2
    SitePoint Evangelist
    Join Date
    Apr 2009
    Location
    South Carolina
    Posts
    458
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You might want to download Xenu. You can find it on download.com and it will locate broken links. I have not used it in a while, but it may also show orphaned files.
    Each day is a learning experience.

  3. #3
    SitePoint Member
    Join Date
    Dec 2013
    Location
    Seattle, Wa.
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by CSU-Bill View Post
    You might want to download Xenu. You can find it on download.com and it will locate broken links. I have not used it in a while, but it may also show orphaned files.
    Yeah found that the other day and love the program as it resolved all but one link issue (just can't find that last link HA HA) but when I tried orphan search it pretty much hit every page returned over 2000 errors in the orphans section which I doubt so not sure what to really do as I know I have orphan pages but unsure how to link into ONLY the pages that are truly orphans short of just doing a links page with each page in a links list organized somehow. That's why I am hoping to find some way around this!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •