+ Reply to Thread
Results 1 to 6 of 6

Thread: Details Page links not working

  1. #1
    Join Date
    Nov 2008
    Location
    Salt Lake City, Utah
    Posts
    571

    Default Details Page links not working

    Google Webmaster Tools - Web Crawl is showing about 5000 pages that can't be found on my website. From what I can tell, when it gets to a listing details page and tries to go to one of the links listed in my local area index, the address is messed up.

    For example, go to http://www.dwellutah.com/idx/condo/814280/details.html. Once there, click on the local area index and select, say Kimball Junction. This link to Kimball Junction (or any of the links you choose) is broken. It tries to take you to http://www.dwellutah.com/idx/condo/8...lljunction.php (where kimballjuction.php replaces details.html) instead of to http://www.dwellutah.com/kimballjunction.php.

    Also, on a separate issue, is there any significance to why this Single Family Home is listed in /idx/condo/ since it's not a condo? In fact, doing a quick check, all the Single Family Homes I checked are showing up as /idx/condo/. Should Single Family be showing up as /idx/residential/ (or something similar) to distinguish them from condos? Or is this just an internal organization structure and it doesn't really matter?

    Thanks for taking a look.
    Ron Ogden | Salt Lake City Realtor | Dwell Utah Real Estate
    Utah Real Estate The Premier Source for Buying & Selling Homes in Utah
    Salt Lake City Homes For Sale Salt Lake Real Estate and Surrounding Areas
    Read my Dwell Utah Real Estate Blog Intersting Articles & Info on Living in Utah

  2. #2
    Aaron is offline Real Estate Webmasters Staff Aaron's Most Recent Blog Entry: Email etiquette Aaron is on a distinguished road
    Join Date
    Jun 2005
    Location
    Nanaimo
    Posts
    24,278

    Default Re: Details Page links not working

    Hi Ron,

    The issue is that your links are relative. In the local area index code you'll see this:

    <li><a href="southslc.php" title="Community Name">South of Salt Lake ...</a></li>

    Change them all to:

    <li><a href="/southslc.php" title="Community Name">South of Salt Lake ...</a></li>

    To correct the issue. ( notice the "/" - before the file name ) ...

    The url doesn't matter - however - I noticed in your snippets .. Example #idx-cottonwood# you have code like this:

    $_REQUEST['idx'] = 'condo, residential';

    This will not work and is likely what is causing the URLS to have 'condos' when it should be 'residential' ..

    I've updated that snippet and the urls end up correct for that snippet now.
    Aaron
    Real Estate Webmasters ( Programming )
    Client Resources | Tutorials | Suggested Enhancements

  3. #3
    Join Date
    Nov 2008
    Location
    Salt Lake City, Utah
    Posts
    571

    Default Re: Details Page links not working

    Thanks, Aaron, for the simple fix on the relative web addresses. Works great, now.

    On the snippet, I included both "residential" and "condo" because I wanted the snippet to display both single family homes ("residential" in my IDX) and condos. The way you've changed the snippet, it will only display single family homes now.

    As I've played around a little, it looks like every Single Family and every Condo listing has both a /idx/residential/ and a /idx/condo/ url. Just go to a listing and type in condo where you see residential in the url and it will display the page.

    Is there a better way to tell the snippet I want to display Single Family Homes and Condos, that will still display the url correctly?
    Ron Ogden | Salt Lake City Realtor | Dwell Utah Real Estate
    Utah Real Estate The Premier Source for Buying & Selling Homes in Utah
    Salt Lake City Homes For Sale Salt Lake Real Estate and Surrounding Areas
    Read my Dwell Utah Real Estate Blog Intersting Articles & Info on Living in Utah

  4. #4
    Aaron is offline Real Estate Webmasters Staff Aaron's Most Recent Blog Entry: Email etiquette Aaron is on a distinguished road
    Join Date
    Jun 2005
    Location
    Nanaimo
    Posts
    24,278

    Default Re: Details Page links not working

    Hi Ron,

    The way I suggest is the best way to fix this.

    This: $_REQUEST['idx'] = 'condo, residential';

    Will not work. The code is not set up so that will work.

    What will end up happening is that it'll use the last IDX that was set.
    Aaron
    Real Estate Webmasters ( Programming )
    Client Resources | Tutorials | Suggested Enhancements

  5. #5
    Aaron is offline Real Estate Webmasters Staff Aaron's Most Recent Blog Entry: Email etiquette Aaron is on a distinguished road
    Join Date
    Jun 2005
    Location
    Nanaimo
    Posts
    24,278

    Default Re: Details Page links not working

    The issue with the URLS is that the Single Family listings and the condos are in the same table... "residential"

    A better way to do it would be to do this:

    $_REQUEST['idx'] = 'residential';
    $_REQUEST['search_type'][] = "Single Family";
    $_REQUEST['search_type'][] = "Condo";

    Then the urls will all be "residential" and it'll show both condos and single family listings. I've updated the #idx-cottonwood# snippet.
    Aaron
    Real Estate Webmasters ( Programming )
    Client Resources | Tutorials | Suggested Enhancements

  6. #6
    Join Date
    Nov 2008
    Location
    Salt Lake City, Utah
    Posts
    571

    Default Re: Details Page links not working

    Perfectly clear. Thanks for the quick response!

    Ron
    Ron Ogden | Salt Lake City Realtor | Dwell Utah Real Estate
    Utah Real Estate The Premier Source for Buying & Selling Homes in Utah
    Salt Lake City Homes For Sale Salt Lake Real Estate and Surrounding Areas
    Read my Dwell Utah Real Estate Blog Intersting Articles & Info on Living in Utah

+ Reply to Thread

Similar Threads

  1. sort links not working
    By dhughes in forum REW CMS 2 Questions
    Replies: 8
    Last Post: 04-15-2009, 10:22 AM
  2. A new main page i created is not working
    By Celeste in forum REW CMS 2 Questions
    Replies: 4
    Last Post: 05-23-2008, 10:51 AM
  3. Exterior Links Not Working.
    By Morristown in forum Google
    Replies: 4
    Last Post: 12-20-2007, 08:00 PM
  4. 100 links a page - revisited
    By judyo in forum Link Building
    Replies: 3
    Last Post: 05-14-2006, 09:29 AM

Posting Permissions

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