D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] dumb question about apace + php

 

Ohh, First post, hello!

 

Can’t you just do that through .htaccess also?

 

I use it on a few websites for SEO

 

I believe Mod_rewrite may help out

 

# CODE START #

 

Options +FollowSymLinks

RewriteEngine On

 

RewriteBase /

 

RewriteRule ^(.*)-p-(.*).js$ page.php?id=$2&%{QUERY_STRING}

 

# CODE END #

 

 

Probably not the best way to do it.I use the cPanel interface to change mime type associations, much quicker J

 

I remember when I was treating .gifs as php files it messed things up on some browsers M$IE  Anyone?

 

 

Kind regards as always.

 

Ryan Carson - Director

Refresh Creations Ltd

---------------------

Web: http://www.refreshcreations.co.uk/

Tel: 0845 09 42 987

Fax: 0870 80 30 989


From: list-bounces@xxxxxxxxxxxxx [mailto:list-bounces@xxxxxxxxxxxxx] On Behalf Of Jaan Jänesmäe
Sent: 07 August 2007 08:55
To: list@xxxxxxxxxxxxx
Subject: Re: [LUG] dumb question about apace + php

 

i think in php.conf you could actually choose which file extensions should be parsed.

My server runs .js as .php for example :)

 

 

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.11.8/940 - Release Date: 06/08/2007 16:53


No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.11.8/940 - Release Date: 06/08/2007 16:53

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html