RE: INCLUDES and search engines? (Full Version)

All Forums >> [Web Development] >> Search Engine Optimization and Web Business



Message


RickP -> RE: INCLUDES and search engines? (5/25/2005 9:24:12)

Jaybee,

I have uploaded .htacces files before when experimenting with them - the only thing is I never saw them again! That is, my FTP tool won't show hidden files (neither does FrontPage). It was only yesterday when I went into the Cpanel file mgr, for the first time, I saw my experimental htaccess files [:D]

It seems that the only original one on there (in the root directory) is blank - this is why I was wondering if that is usual - maybe it doesn't HAVE to say anything but can be added to for various reasons - such is my conclusion at present




jaybee -> RE: INCLUDES and search engines? (5/25/2005 9:29:16)

quote:

Is it necessary to use head tags and add things like links to style sheets? Is this not taken from the main page once your page is 'included' ?


I never have any header info in my includes I let the main page specify the layout.

If everything is well thought out beforehand you shouldn't need to have any inline styles. What tends to happen though is, you need to make a small change later on and rather than setting it up in your style sheet you use a span on the item.

Try not to, it only stores up problems for later and the whole point of css is that you can change everything fast from one place.

The following is the included header from one of my sites.

 <!-- header div -->
 <div id="hdr">
   <img src="/images/logos/california-ballroom-r.jpg" width="471" height="161" alt="California Ballroom Trade Mark" title="Welcome to the California Ballroom web site"/>
   <div id="helpbox">
       <br />
       <a tabindex="1" href="#title" class="skip" title="access key 2" accesskey="2">Skip Navigation</a><br />    
       <span class="separator">|</span><br />
       <a tabindex="1" href="/help/privacy.htm" title="Privacy Information for this site">Privacy Policy</a><br />
       <span class="separator">|</span><br />
     <a tabindex="1" href="/help/help.htm" title="Answers to browsing problems">Troubleshoot</a><br />
       <span class="separator">|</span><br />
     <a tabindex="1" href="/help/accessibility.htm" title="Accessibility information for this site">Accessibility</a><br />
       <span class="separator">|</span><br />
     <a tabindex="1" href="/help/larger-text.htm" title="Increase the text size on this site"><span class="medwhitebold">LARGER TEXT</span></a><br /><br />
   </div>
   <div>
       <br />
 <?php
 #ini_set('display_errors', 'On');
 
 // See class.breadcrumb.inc.php
 include_once('class.breadcrumb.inc.php');
 $breadcrumb = new breadcrumb;
 $breadcrumb->homepage='home'; // sets the home directory name
 $breadcrumb->dirformat='ucfirst'; // Show the directory in this style
 $breadcrumb->symbol=' ~ '; // set the separator between directories
 $breadcrumb->showfile=FALSE; // shows the file name in the path
 $breadcrumb->linkFile=TRUE; // Link the file to itself
 $breadcrumb->hideFileExt=TRUE; //Hide the file extensions
 $breadcrumb->cssClass='crumb'; //use this css class
 $breadcrumb->_toSpace=TRUE; // converts underscores to spaces
 $breadcrumb->dashtoSpace=TRUE; // converts dashes to spaces
 echo "<p>You are here: ".$breadcrumb->show_breadcrumb()."</p>";
 ?>
 
     <ul id="navlist">
         <li><a tabindex="2" href="/" title="skip to the homepage">HOME</a></li>
         <li><a tabindex="2" href="/forum/index.php" title="skip to the forum">FORUM</a></li>
         <li><a tabindex="2" href="/eguestpro/EGuest-PRO_show.php" title="skip to the guestbook">GUESTBOOK</a></li>
         <li><a tabindex="2" href="/forms/feedform.htm" title="skip to the contact page">CONTACT</a></li>
         <li><a tabindex="2" href="/shop/index.php" title="skip to the shop">SHOP</a></li>
         <li><a tabindex="2" href="/help/sitemap.php" title="skip to the site map">SITE MAP</a></li>
     </ul>
   </div>
 </div>
 <!-- end of header -->
 
 


Please note..... no header tags, no <html>, no <body>
all pulled into the page using a php include.




jaybee -> RE: INCLUDES and search engines? (5/25/2005 9:39:55)

Your original htaccess file will be blank. If your control panel is the same as mine it allows you to change things such as redirects, MIME types and so on.

Each time you make a change to those, a line (or 400) gets written to the htaccess file. You can also add your own stuff but you need to make sure you keep anything that's in it already which is why I said copy and paste it to notepad. If you've done no mods then it's empty so you have no problem.

The line I have in mine which is relevant to your php includes is

AddHandler application/x-httpd-php .php .php4 .php3 .htm .html




RickP -> RE: INCLUDES and search engines? (5/25/2005 9:51:51)

V. useful - thanks




RickP -> RE: INCLUDES and search engines? (5/27/2005 6:13:07)

Ah... ( a few days later...!)... just another thought about this topic...

I am thinking that the easiest way to ensure that my included pages fit seemlessly with the pages that include them (and without any excess layout code) is like this...

Just design a page with ALL elements on it and then cut the code for the parts I want to use as includes and paste them (with nothing else) into their sepaparte files [:D]

Does this sound like a good approach? Or is there some flaw to this method?




Tailslide -> RE: INCLUDES and search engines? (5/27/2005 6:30:19)

That's EXACTLY what I do Rick.




(so it's probably wrong!!)




jaybee -> RE: INCLUDES and search engines? (5/27/2005 7:55:43)

quote:

Just design a page with ALL elements on it and then cut the code for the parts I want to use as includes and paste them (with nothing else) into their sepaparte files


Perfecto!




RickP -> RE: INCLUDES and search engines? (5/27/2005 13:22:50)

Ah, nice to know I've come to the same conclusions as others - even if the others are wrong!!! - at least I won't be alone! [:D]




Page: <<   < prev  1 [2]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.078125