Re: [users@httpd] Parsing .htm extensions as .php extensions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Wow, this is too weird. I just discovered that this
site is ALREADY parsing .htm pages as .php - and it's
also doing it online! It's apparently due to this code
in the .htaccess file:

RewriteEngine ON
RewriteRule index.html  index.php [QSA]

I don't understand why I couldn't get it to work when
I tried it months ago. Oh well, can't complain about a
freebie. :)

Thanks.


--- Chris Knipe <savage@xxxxxxxxxxxxx> wrote:

> Isn't that one a bit obvious?
> 
> Add .htm to the list???
> 
> --
> Chris.
> 
> ----- Original Message ----- 
> From: "David Blomstrom" <david_blomstrom@xxxxxxxxx>
> To: <users@xxxxxxxxxxxxxxxx>
> Sent: Tuesday, August 16, 2005 11:15 AM
> Subject: Re: [users@httpd] Parsing .htm extensions
> as .php extensions
> 
> 
> > OK, you're talking about Apache's httpd conf file,
> > right? It already has this line:
> >
> > AddType application/x-httpd-php .php .php4 .php3
> > .phtml
> >
> > So how do I change it if I want it to interpret
> .htm
> > extensions as .php extensions? Also, is there
> anyway
> > to do this in .htaccess instead? I don't think I
> have
> > access to the conf file online.
> >
> > Thanks.
> >
> >
> > --- Davide Bianchi <davide@xxxxxxxxxxxxxx> wrote:
> >
> >> David Blomstrom wrote:
> >> > I THINK there's an Apache function that allows
> you
> >> to
> >> > use PHP on web pages with .htm extensions.
> >>
> >> Just change the extension mapping in the default
> >> AddType application/x-httpd-php
> >> to wathever you want.
> >>
> >> Davide
> >>
> >>
> >> -- 
> >> "Our business model works even if all internet
> >> software is free.
> >> How does Netscape's business model look? -- not
> so
> >> good."
> >>    -- Bill Gates
> >>
> >>
> >
>
---------------------------------------------------------------------
> >> The official User-To-User support forum of the
> >> Apache HTTP Server Project.
> >> See <URL:http://httpd.apache.org/userslist.html>
> for
> >> more info.
> >> To unsubscribe, e-mail:
> >> users-unsubscribe@xxxxxxxxxxxxxxxx
> >>    "   from the digest:
> >> users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> >> For additional commands, e-mail:
> >> users-help@xxxxxxxxxxxxxxxx
> >>
> >>
> >
> >
> >
> >
> >
> ____________________________________________________
> > Start your day with Yahoo! - make it your home
> page
> > http://www.yahoo.com/r/hs
> >
> >
> >
>
---------------------------------------------------------------------
> > The official User-To-User support forum of the
> Apache HTTP Server Project.
> > See <URL:http://httpd.apache.org/userslist.html>
> for more info.
> > To unsubscribe, e-mail:
> users-unsubscribe@xxxxxxxxxxxxxxxx
> >   "   from the digest:
> users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> > For additional commands, e-mail:
> users-help@xxxxxxxxxxxxxxxx
> >
> > 
> 
> 
> 
>
---------------------------------------------------------------------
> The official User-To-User support forum of the
> Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for
> more info.
> To unsubscribe, e-mail:
> users-unsubscribe@xxxxxxxxxxxxxxxx
>    "   from the digest:
> users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail:
> users-help@xxxxxxxxxxxxxxxx
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux