1
RicoCali
.xyz = .php
  • 2003/11/27 4:53

  • RicoCali

  • Not too shy to talk

  • Posts: 120

  • Since: 2002/7/29


How do you configure apache to read "somefile.xyz" as "somefile.php". In other words, any extension with "xyz" is actually "php"

2
ajaxbr
Re: .xyz = .php
  • 2003/11/27 5:46

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


From a Guide to .htaccess
Quote:
Adding MIME Types

What if your server wasn't set up to deliver certain file types properly? A common occurrence with MP3 or even SWF files. Simple enough to fix:

AddType application/x-shockwave-flash swf

AddType is specifying that you are adding a MIME type. The application string is the actual parameter of the MIME you are adding, and the final little bit is the default extension for the MIME type you just added, in our example this is swf for ShockWave File.


So what you need is basically a line with
AddType application/x-httpd-php xyz
inside a .htaccess file in your root dir
[edit] hmm some places suggest '.xyz'... try both [/edit]

3
RicoCali
Re: .xyz = .php
  • 2003/11/27 13:46

  • RicoCali

  • Not too shy to talk

  • Posts: 120

  • Since: 2002/7/29


Wow! That's amazing! It worked! Thank you for your help!

Login

Who's Online

285 user(s) are online (161 user(s) are browsing Support Forums)


Members: 0


Guests: 285


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits