navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

RE: INCLUDES and search engines?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Search Engine Optimization and Web Business >> RE: INCLUDES and search engines?
Page: <<   < prev  1 [2]
 
RickP

 

Posts: 659
Joined: 11/13/2004
From: Kent, U.K.
Status: offline

 
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 :)

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

_____________________________

Regards, Rick
On-The-Web-Now!

(in reply to jaybee)
jaybee

 

Posts: 13972
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
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.


_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to RickP)
jaybee

 

Posts: 13972
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
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


< Message edited by jaybee -- 5/25/2005 9:46:05 >


_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to jaybee)
RickP

 

Posts: 659
Joined: 11/13/2004
From: Kent, U.K.
Status: offline

 
RE: INCLUDES and search engines? - 5/25/2005 9:51:51   
V. useful - thanks

_____________________________

Regards, Rick
On-The-Web-Now!

(in reply to jaybee)
RickP

 

Posts: 659
Joined: 11/13/2004
From: Kent, U.K.
Status: offline

 
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 :)

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

_____________________________

Regards, Rick
On-The-Web-Now!

(in reply to RickP)
Tailslide

 

Posts: 5915
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: INCLUDES and search engines? - 5/27/2005 6:30:19   
That's EXACTLY what I do Rick.




(so it's probably wrong!!)


_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to RickP)
jaybee

 

Posts: 13972
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
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!


_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to Tailslide)
RickP

 

Posts: 659
Joined: 11/13/2004
From: Kent, U.K.
Status: offline

 
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! :)

_____________________________

Regards, Rick
On-The-Web-Now!

(in reply to jaybee)
Page:   <<   < prev  1 [2]

All Forums >> Web Development >> Search Engine Optimization and Web Business >> RE: INCLUDES and search engines?
Page: <<   < prev  1 [2]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts