[SLUG] File extensions

Ian Eade webmaster at hammondgallery.co.uk
Sat Oct 15 13:25:15 BST 2005



-----Original Message-----
From: scarborough-bounces at mailman.lug.org.uk
[mailto:scarborough-bounces at mailman.lug.org.uk] On Behalf Of Stephen
O'Neill
Sent: 15 October 2005 08:39
To: Scarborough Linux User Group
Subject: Re: [SLUG] File extensions

Ian Eade wrote:

>Put a .htaccess file in the root directory instructing the server to
>process .shtml files as PHP, something like this should do it
(providing
>the webserver allows it)
>
That'll be helpful cheers Ian.

Given that I will have to maintain a separate set of static html files,
but they'll just get parsed as PHP, I may play around with mod_rewrite -
I'd not thought about having a .htaccess file in there.

Steve

		
============================
mod_rewrite can provide hours of fun but can also be complete overkill
for simple thing, its surprising what you can do with .htaccess files.
Also if the web server set up changes (moving the website, upgrades etc)
you're in a whole world of pain and search engines may not take too well
to them. 

Thinking of search engines if you use a .php extension the search
engines tend to register the file as a zero content page thereby
ignoring it. As such I rely on php3 and use php for backend and hidden
files.

Ian
 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 267.11.14 - Release Date: 10/10/2005
 





More information about the Scarborough mailing list