- changing from *.html to *.php
- Posted by Ed on March 11th, 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
I've just had to change the extensions on my blog's files from .html to
..php in order for a new feature to work.
Should I put in a redirect to point any .html files to their .php
equivalents? What's the simplest way to do this on an Apache server?
- --
http://blog.peculiarplace.com
http://lurasbookcase.com
http://purrfectdomains.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32) - GPGshell v3.47
iQEVAwUBRBJRGvu4FzRyppzVAQhs9Qf/XmqpLBOyL//J9zZHyDusxXcyzsjGGCfc
9nxrd3Kc0JEKvwVv4UFgkE5TuKM9gNenk6pouQWgGWn7AS2HA0 AwCBaxwU4pq+6t
47WdoG9AW0yJvBty7s8zk0HdUNm78skaPWjj/IthRSPsDDFix3BLUl6t+aOr6OVK
HoA/PvXDHwtSIMsi2cqQ+e0+pjg5l9yWflNpcLk2J1CV5cd0iqCERG A0g2lBjDwC
Z0WwbYaMDav7L6Cc4S/obMRje41bB+9Q1vBG2cU4ji1PdHBBs2wMEBb1+hrOOGTb
5K3+fUP4fEocC09Nn8dji4muJW8GE5S4krS0CC9FE9Uh6w7IKg I1nQ==
=3DMy
-----END PGP SIGNATURE-----
- Posted by Borek on March 11th, 2006
On Sat, 11 Mar 2006 05:25:03 +0100, Ed
<apostle@REMOVETHISpeculiar.homeip.net> wrote:
It was discussed not long ago. Filetype shouldn't be recognized by
extension, so you should be able to achieve the goal (of using php)
without changing file names.
Best,
Borek
--
http://www.chembuddy.com
http://www.bpp.com.pl
- Posted by Roy Schestowitz on March 11th, 2006
__/ [ Borek ] on Saturday 11 March 2006 09:33 \__
Change the URL's and you will lose valuable links from the outside. Any
redirection has a cost unless you rewrite the URL's. You could change your
server configuration to treat HTML files as though they were PHP files (they
are now), but the practicality of this depends on what /else/ resides on the
same domain. If you choose to do this, be careful as you can b0rk (no, not
Borek) things altogether. *smile*
Hope it helps,
Roy
--
Roy S. Schestowitz | GPL'd Reversi: http://othellomaster.com
http://Schestowitz.com | SuSE Linux | PGP-Key: 0x74572E8E
9:35am up 3 days 2:12, 7 users, load average: 0.39, 0.49, 0.42
http://iuron.com - Open Source knowledge engine project
- Posted by Borek on March 11th, 2006
On Sat, 11 Mar 2006 10:42:02 +0100, Roy Schestowitz
<newsgroups@schestowitz.com> wrote:

Best,
Borek
--
http://www.chembuddy.com
http://www.ph-meter.info
- Posted by hug on March 11th, 2006
Ed <apostle@REMOVETHISpeculiar.homeip.net> wrote:
The best and easiest way to do it without losing search-engine
position is to use SSI in do-nothing html files to include the
necessary php files... this is of course opinion, and I are of course
severely retarded, but that's my thunk.
--
http://www.ren-prod-inc.com/hug_soft...action=contact
- Posted by wd on March 24th, 2006
On Sat, 11 Mar 2006 10:33:30 +0100, Borek wrote:
If you are using a hosting company with Apache server, the control panel
often has a link to "Apache handlers". If I remember correctly, you just
add application/x-httpd-php for .htm and .html extensions. I just did
this a few times recently, but check Google to be sure...
After you do that, any PHP in the HTML files will be executed.


