I have a similar hack working on Apache/Linux, but I could never get it working on
Apache/Win98.
Not a big deal, but has anyone tried this on windows? I cannot issue the
ForceType application/x-httpd-php directive
and the URL rewrite also gave me more trouble then it was worth.
Thanks,
-Aaron Held
http://www.metrony.com/
----- Original Message -----
From: "Antonio M�rmol Albert" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 26, 2001 7:34 PM
Subject: Re: [FreeTrade-dev] Search Engine Friendly URLs
> El martes 26 de junio de 2001 (13:41), Kevin Leavell escribi�:
>
> > I am in the process of converting the FT2 engine to do search engine
> > friendly urls
> > like/this/searchable instead of like?this=searchable
> >
> > When a search engine hits the store, a new sid is generated. My concern is
> > the search engine indexing the sid.
> >
> > It seems, from the search engines perspective, the sid will produce the same
> > content for the same url so the page will age accurately in the search
> > engine db......but,
> >
> > The problem is the second time the search engine spiders the site, new sids
> > will be generated off of links that are spidered. So, in theory, everytime
> > the search engine spidered the site, the store would be reindexed while old
> > pages would remain in the search engine db with the original sid and new
> > pages would be added with a new sid. This would lead to a ton of duplicate
> > products in the search engine database and perhaps possible rank penalties
> > or a complete delisting from the search engine db. Hmmm. Anyone
> > implemented this? I know it's been discussed in the past.
> >
> > any thoughts, comments, or claims of insanity?...
>
> You can use only cookies and don't pass the sid in the url.
>
> Or you can try to identify the spiders with the USER_AGENT and the IP of
> the visitor. If is_a_spider then url_without_sid else url_with_sid.
>
> I saw a php script that identify the spiders. I don't know if it updated or
> not. I saw it in phpbuilder.com. If you are interested, I can find it.
>
>
> In other hand, I rewrite freetrade to make the urls search engine friendly.
> The web isn't online yet but this is the code:
>
> EXAMPLE URL:
> http://www.domain.com/index.html/SCREEN/categoria/categoria/7.html
>
> $SCREEN = 'categoria';
> $categoria = '7';
>
>
> FILE: index.html (index.php before)
>
> if (isset($REQUEST_URI))
> {
> // quit the '.html' string at the end of the url
> $varURL = substr($REQUEST_URI, 0, -5);
>
> $vardata = explode("/", $varURL);
>
> $num_param = count($vardata) - 1;
>
> // add a new register in the array if it is pair
> // the array CAN'T BE pair
> if ($num_param % 2 == 0)
> {
> $vardata[] = '';
> $num_param++;
> }
>
> // create the vars
> for ($i=2; $i<$num_param; $i+=2)
> {
> $$vardata[$i] = $vardata[$i+1];
> }
> }
>
>
> FUNCTION: ScreenURL()
>
> function ScreenURL($screen, $secure=FALSE, $extra='')
> {
> global $PHPSESSID;
> global $UserInfo;
>
> if (USE_SSL AND $secure)
> {
> $URL = "https://";
> }
> else
> {
> $URL = "http://";
> }
>
> $URL .= SERVER_NAME . EXTERNAL_PATH . SCRIPT_NAME .
> "/SCREEN/$screen";
>
> // $URL .= "/PHPSESSID/$PHPSESSID";
>
> if (is_array($extra))
> {
> for (reset($extra); $key=key($extra); next($extra))
> {
> $URL .= "/$key/" . prepareText($extra[$key]);
> }
> }
>
> return $URL . ".html";
> }
>
> CHANGES IN THE CONF OF THE VIRTUALHOST
>
> <Virtualhost yourdomain.com>
> ...
> ...
> ...
>
> <Location /index.html>
> ForceType application/x-httpd-php
> </Location>
> </VirtualHost>
>
>
> It is, basically, the changes that I do. It run ok for me.
> I can't try if it is "indexable" or not by the search engines.
>
>
> Regards
> --
> Antonio M�rmol Albert ( [EMAIL PROTECTED] )
> http://www.infurma.es
> _______________________________________________
> FreeTrade-dev mailing list
> [EMAIL PROTECTED]
> http://share.whichever.com/mailman/listinfo/freetrade-dev
_______________________________________________
FreeTrade-dev mailing list
[EMAIL PROTECTED]
http://share.whichever.com/mailman/listinfo/freetrade-dev