Hi Kevin,
I'm not working with FreeTrade. At the moment I'm using it as an
example of good style and organization.
But I was involved with addressing this issue a while back.
Some resources -
Jeremy Brand, http://www.jeremybrand.com
has a snippit of code doing it one way.
http://www.nirvani.net/software/variables_from_uri/
Tim Perdue, from phpbuilder.com wrote an article on this
'Building Dynamic Pages With Search Engines in Mind'
And some threads in the archives:
Subject: Re: [PHP] search engines ignoring .php3 pages
Subject: Re: [PHP3] Small bug
Andreas Schamberger <[EMAIL PROTECTED]>, http://www.mongokrieger.de
Has a semi-fork of the old Back-End v0.3.3 code, called
back-end_v0.4.2andi, that has implemented some url_handler code.
http://www.schambergernet.de/download.html?fileID=6
The url_handler code is in 'main_file'
(more comments below).
Kevin Leavell wrote:
>
> Has anyone implemented url parsing (for lack of a better term) in
We finally settled on calling it 'virtual directories'.
> Freetrade/energy (below is a snip from a freetrade email by Leon in 07/99).
> I want to use FT as the framework for several sites but am hindered by
> concerns of search engines and FT urls. The snip below seems to be a
> straight forward approach, but I thought I would turn the stone over again
> for input.
>
> Thanks in advance, Kevin
>
> <snip begin>
> You can use URLs like
> <http://tesla.clearink.com/~leon/FreeEnergy/htdocs/index/about.html>, which
> will be understood to mean SCREEN=3Dabout. I also added an htaccess file
> with
> the following lines:
>
As Tim's article will show, you can also use the
<Files scriptname>
Forcetype application/x-http-php
</Files>
directive to execute a script with any name, excluding an extension
that can contain your urlhandler code.
> DirectoryIndex index
> DefaultType application/x-httpd-php3
>
> I haven't found a way around having the URLs look like everything's inside a
> subdirectory (index), though.
>
The only way we got around this was basically have copies of a main_urlhandler.php
script named after categories or directories. Of course that's a pain. Used a perl
script to handle
making copies of the main script so that any changes were all done just in the main_
urlhandler script. And you had to have entries of the above <Files...Forcetype ...
in httpd.conf or .htaccess for every category name. But it eventually worked.
> Having said all that, I'm not 100% it's a great idea to change FreeTrade
> over to this method. One reason is that most likely, it will break if not
> used with Apache. Since it only involves changes to index.php3 and the
> function that creates URLs, I suggest we make an alternate index file and
> maybe a switch inside global_settings.
> <snip>
>
Another thing to watch out for, is solutions to this problem involving using
header(location: )
This is implemented as an internal apache redirect which, apparently, many(?) search
engines choke on. I don't know the whole story on this.
It's a good problem to work on.
Good luck,
MD
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Site: http://www.working-dogs.com/freetrade/
> Problems?: [EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Site: http://www.working-dogs.com/freetrade/
Problems?: [EMAIL PROTECTED]