.htaccess and mod_rewrite
am 24.10.2007 05:04:47 von Galatorgis there a way that I can make my own file extension and have it load
as php?
from this:
example.com/something.php
to this:
example.com/something.extension
is there a way that I can make my own file extension and have it load
as php?
from this:
example.com/something.php
to this:
example.com/something.extension
On Oct 23, 11:04 pm, Lamer
> is there a way that I can make my own file extension and have it load
> as php?
>
> from this:
> example.com/something.php
> to this:
> example.com/something.extension
You want something like this:
AddType application/x-httpd-php .foo
That will cause files with the .foo extension to be run through the
PHP engine.
Greetings, Lamer.
In reply to Your message dated Wednesday, October 24, 2007, 07:04:47,
L> is there a way that I can make my own file extension and have it load
L> as php?
L> from this:
L> example.com/something.php
L> to this:
L> example.com/something.extension
Assume You are using PHP with Apache, take a look at Apache Filter SAPI
(php5apache2_2_filter.dll) and Filters reference manual on Apache website.
http://httpd.apache.org/docs/2.2/filter.html
--
Sincerely Yours, AnrDaemon