php includes for menu, is this effecting search bots?

Discussion in 'HTML & Website Design' started by bnelsonFSO, Feb 27, 2009.

  1. #1
    Recently I coded my website in PHP.

    Im using php includes for the header and footer menus.

    I want to make sure that search bots can navigate the site fine with the php includes so I downlaoded xenu link sleauth.

    if I run a link sleauth scan, i get an error on a few pages such as:

    http://fastsupportonline.com/../dell_support/
    which obviously is not correct.

    My header looks like this:

    
    		<ul class="menu1">
    			<li><a href="/"><strong>Home</strong></a></li>
    			<li><a href="../online_computer_support/"><strong>Services</strong></a></li>
    			<li><a href="../pricing.php"><strong>Pricing</strong></a></li>
    			<li><a href="../about_us.php"><strong>About Us</strong></a></li>
    			<li>
    			<a href="../support/index.php?_m=knowledgebase&amp;_a=view">
    			<strong>FAQ</strong></a></li>
    			<li><a href="../support/index.php"><strong>My Account</strong></a></li>
    		</ul>
    
    
    
    Code (markup):

    i call the header from pages that are in the root folder and pages in sub folders. Is this correct? or should my header include the absolute url instead of using ../

    thanks for any help.
     
    bnelsonFSO, Feb 27, 2009 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    Since you're using the same markup from different parts of the document tree, you can't use relative addressing. Make your urls start at the document root, i.e /.

    cheers,

    gary
     
    kk5st, Feb 27, 2009 IP