In an effort to make pages more search engine friendly,
i'd like to be able to have php parse a few that do not
have extensions..
ie, if it could parse the file "zoom" then i could make
urls like http://foo.com/zoom/1231
instead of http://foo.com/zoom.php?id=1234
i've conquered the /1232 vs. id=12312 problem already..
just parse the get string.. but now to make php parse
zoom
i've added
AddType application/x-httpd-php zoom
into httpd.conf with no effect (yes i restarted apache)
any idea's ?
Jeff MacDonald,
-----------------------------------------------------
PostgreSQL Inc | Hub.Org Networking Services
je...@pgsql.com | je...@hub.org
www.pgsql.com | www.hub.org
1-902-542-0713 | 1-902-542-3657
-----------------------------------------------------
Facsimile : 1 902 542 5386
IRC Nick : bignose
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general...@lists.php.net
For additional commands, e-mail: php-gene...@lists.php.net
To contact the list administrators, e-mail: php-lis...@lists.php.net
Where /path/to is your root - so like this:
http://www.server.com/scripts/zoom would be
AddType application/x-httpd-php /scripts/zoom
Attached is a copy of my httpd.conf file that does this.
--Joe
------------- my .htaccess file in my / ------------------
AddType application/x-httpd-php3 php .php3 .phtml .html .inc
AddType application/x-httpd-php3 /redirect.php
AddType application/x-httpd-php3 /index.php
AddType application/x-httpd-php3 /articles.php
AddType application/x-httpd-php3 /boards/replies.php
AddType application/x-httpd-php3 /boards/threads.php
------------- my .htaccess file in my / ------------------
>
> into httpd.conf with no effect (yes i restarted apache)
>
> any idea's ?
>
>
> Jeff MacDonald,
>
> -----------------------------------------------------
> PostgreSQL Inc | Hub.Org Networking Services
> je...@pgsql.com | je...@hub.org
> www.pgsql.com | www.hub.org
> 1-902-542-0713 | 1-902-542-3657
> -----------------------------------------------------
> Facsimile : 1 902 542 5386
> IRC Nick : bignose
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general...@lists.php.net
> For additional commands, e-mail: php-gene...@lists.php.net
> To contact the list administrators, e-mail: php-lis...@lists.php.net
================================================================================
= Joe Stump joest...@yahoo.com http://www.miester.org =
================================================================================
"Real programmers don't comment their code.
It was hard to write, it should be hard to understand."
See: http://www.apache.org/docs-1.2/mod/mod_rewrite.html
Paul A. Owen
www.ywebwerks.com
Paul.
thanks tho..
On Mon, 20 Nov 2000, Paul A. Owen wrote:
> If you are using Apache then take a look at its rewrite module. It does
> this kind of stuff rather well.
>
> See: http://www.apache.org/docs-1.2/mod/mod_rewrite.html
>
> Paul A. Owen
> www.ywebwerks.com
>
>
Jeff MacDonald,
-----------------------------------------------------
PostgreSQL Inc | Hub.Org Networking Services
je...@pgsql.com | je...@hub.org
www.pgsql.com | www.hub.org
1-902-542-0713 | 1-902-542-3657
-----------------------------------------------------
Facsimile : 1 902 542 5386
IRC Nick : bignose
A couple of good ways are to use ForceType or DefaultType, I like
DefaultType because it won't mess with other files in the same
directory:
DefaultType application/x-httpd-php
will make php parse any file w/ an extension it doesn't recognize and
also files w/ no extension.
- Mark
works but i still need a little advise..
i tested it on my home machine.. with 1 domain on it
the actual machien that i want to do this on is a production
machine with over 100 domains.. each has it's own config
section in httpd.conf (or included files thereof)
i added this line to the appropriate secion, SIGHUP'd but
no go..
how can i make it so .htaccess changes will take effect ?
Allowoverride all ?
jeff
> Hi
>
> In an effort to make pages more search engine friendly,
> i'd like to be able to have php parse a few that do not
> have extensions..
>
> ie, if it could parse the file "zoom" then i could make
> urls like http://foo.com/zoom/1231
>
> instead of http://foo.com/zoom.php?id=1234
>
> i've conquered the /1232 vs. id=12312 problem already..
> just parse the get string.. but now to make php parse
> zoom
>
> i've added
>
> AddType application/x-httpd-php zoom
>
> into httpd.conf with no effect (yes i restarted apache)
>
<Directory /path/to/dir>
<Files "zoom">
ForceType application/x-httpd-php
</Files>
</Directory>
and in zoom.php:
$path_info = explode ('/',getenv('PATH_INFO'));
-- teodor
jeff
On Tue, 21 Nov 2000, Teodor Cimpoesu wrote:
> Hi Jeff!
> On Mon, 20 Nov 2000, Jeff MacDonald wrote:
>
> > Hi
> >
> > In an effort to make pages more search engine friendly,
> > i'd like to be able to have php parse a few that do not
> > have extensions..
> >
> > ie, if it could parse the file "zoom" then i could make
> > urls like http://foo.com/zoom/1231
> >
> > instead of http://foo.com/zoom.php?id=1234
> >
> > i've conquered the /1232 vs. id=12312 problem already..
> > just parse the get string.. but now to make php parse
> > zoom
> >
> > i've added
> >
> > AddType application/x-httpd-php zoom
> >
> > into httpd.conf with no effect (yes i restarted apache)
> >
>
> <Directory /path/to/dir>
> <Files "zoom">
> ForceType application/x-httpd-php
> </Files>
> </Directory>
>
> and in zoom.php:
>
> $path_info = explode ('/',getenv('PATH_INFO'));
>
>
> -- teodor
>
>
Jeff MacDonald,
-----------------------------------------------------
PostgreSQL Inc | Hub.Org Networking Services
je...@pgsql.com | je...@hub.org
www.pgsql.com | www.hub.org
1-902-542-0713 | 1-902-542-3657
-----------------------------------------------------
Facsimile : 1 902 542 5386
IRC Nick : bignose
Enjoy.
-jeremy brand
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: jer...@nirvani.net
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
- - - - - - - - - - - - - - - - - - - - - - - - -
I am pleased to see that we have differences. May we together become
greater than the sum of both of us.
-- Surak of Vulcan, "The Savage Curtain", stardate 5906.4
On Tue, 21 Nov 2000, Benjamin Munoz wrote:
> Date: Tue, 21 Nov 2000 17:58:33 -0800
> From: Benjamin Munoz <bmu...@ivtweb.com>
> To: 'Jeff MacDonald' <je...@pgsql.com>, Teodor Cimpoesu <t...@digiro.net>
> Cc: php-g...@lists.php.net
> Subject: RE: [PHP] Parsing files without extensions.
>
>
> There's an article with more info on this at:
>
> http://www.faqts.com/knowledge-base/view.phtml/aid/124/fid/342
>
> -Ben