Forum Moderators: coopster
I've been working on a new design for our website, and we came up with a php template system, which reads a content page from a folder "conent"(html files). as such: index.php?content=pagex
Now I was wondering if a searchengine would pick up a page from the pages folder, the viewer would only see the text because the design, menus etc are all being created by the index.php.
The above we do not want to happen! is there ny way to avoid such an incident?
As always many thanks in advance, for even reading this.. :)
But what exactly do you mean with a viewable document root?
Right now this is the set-up:
public_html/index.php <-1 file
public_html/pages/page1.htm etc <-all pages, indexes turned off through Cpanel
Sorry about this, Im still quite the noob when it comes to these sorts of things
probably could make a pretty penny
</sarcasm>
Look into Smarty for php
Which leads to the tutorial Rubenski mentioned, but that is a bit over my head, but I appreciate the info.
Just to be sure you can do something so that it isn't possible to even see those pages. I don't know if apache has a setting to 'turn off' a directory but you could always use mod_rewrite to redirect /pages/.* to index.php