.htaccess and mod_rewrite

.htaccess and mod_rewrite

am 24.10.2007 05:04:47 von Galatorg

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

Re: .htaccess and mod_rewrite

am 24.10.2007 05:29:27 von zeldorblat

On Oct 23, 11:04 pm, Lamer wrote:
> 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.

Re: .htaccess and mod_rewrite

am 24.10.2007 16:31:47 von AnrDaemon

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