On Dec 2, 1:01 pm, Bogdan <[email protected]> wrote:
> Thanks Markus,
> Thanks Dan,
>
> Your comments are really precious.
>
> May be first I would try the htaccess method, which replaces
> (RewriteRule ^.*$ /defaultfield [L,R=301] # redirects to the default
> field ) the 'chdir' in the root index.php.
>
> If it allows to use second field, it could do the job. Otherwise, I
> have to investigate the Boltwire constants in the engin.php.

Yes. You can still access other fields like mysite.com/
nondefaultfield.

> On 1 Дек, 23:11, Markus <[email protected]> wrote:
>
>
>
> > Did we ever have a cleanURLs guru? :)
>
> > In case it's helpful, here is my root .htaccess. You probably don't
> > want every line though:
>
> > RewriteEngine On
> > RewriteCond %{HTTP_HOST} ^mysite.com
> > RewriteRule (.*)http://www.mysite.com/$1[L,R=301] # adds www
> > RewriteRule ^piwik.?$ /piwik/index.php [L,R=301] # allows non-boltwire
> > dir to be accessed
> > RewriteCond %{REQUEST_FILENAME} !-f # allows files in a field to be
> > fetched
> > RewriteRule ^.*$ /defaultfield [L,R=301] # redirects to the default
> > field
>
> > (You probably have to remove the comments.)
>
> > And the .htaccess sitting in every field:
>
> > RewriteEngine On
> > RewriteCond %{HTTP_HOST} ^mysite.com
> > RewriteRule (.*)http://www.mysite.com/$1[R=301,L]
> > RewriteCond %{REQUEST_FILENAME} !-f
> > RewriteCond %{REQUEST_FILENAME} !-d
> > RewriteRule ^(.*)$ index.php?p=$1 [L]
>
> > And finally index.php in defaultfield:
>
> > <?php
> > $BOLTadmin='me';
> > $cleanURL='http://www.mysite.com/defaultfield/';
> > $fieldURL='http://www.mysite.com/defaultfield/';
> > include_once("../boltwire/barn/scripts/engine.php");
>
> > Enough voodoo for today. Did it help?
>
> > Markus
>
> > On Dec 1, 9:48 pm, The Editor <[email protected]> wrote:
>
> > > I'm not very good with cleanUrls, so that is up to any resident guru
> > > on the list you can find.
>
> > > As for the stuff in your files directory, the chdir command throws a
> > > loop in things. I would recommend using cleanUrls over this approach,
> > > unless you have good reasons. Still, you might be able to fix it
> > > easily by simply resetting any needed path variables in your index.php
> > > file before calling the engine. Of for that matter in your root
> > > index.php file. See engine.php lines 26 to 40 or so for a list of them
> > > and their default values. Possibly the first one to try is something
> > > like this:
>
> > > $fieldURL = 'mysite.com/default_field/files';
>
> > > Not sure if it would work, or if you would need to modify other
> > > things. But it's a start...
>
> > > Cheers,
> > > Dan
>
> > > On Tue, Dec 1, 2009 at 5:11 AM, Bogdan <[email protected]> wrote:
> > > > Looking at docs.admin.farms, I came up with a slight modification of
> > > > the farm installation. A combination between the last two options. I
> > > > use the architecture:
> > > > Root
> > > >    boltwire2.30
> > > >    boltwire3.31
> > > >    boltwire2.32
> > > >    boltwire    <>>Put the latest version here
>
> > > >    farm/*.*    <>>Put the farm folder here
>
> > > >    field1
> > > >         index.php
> > > >    field2
> > > >         index.php:
>
> > > > $BOLTadmin='admin';
> > > > $field = "/field/pages";
> > > > $farmPath = "../farm";
> > > > $boltwire = '../boltwire';
> > > > include_once("$boltwire/barn/scripts/engine.php");
>
> > > > ...but in the Root, I place an index.php, which redirects to a default
> > > > field:
> > > > chdir('default_field');
> > > > include("index.php");
>
> > > > Everything goes well in this installation, which shortens the default
> > > > folder in the pages url: mysite.com/index.php?p=..., instead of
> > > > 'mysite.com/default_field/index.php?p=...'. This is except for the
> > > > uploaded files and images (the content of the field/files directory).
> > > > They are rendered as mysite.com/files/file.ext, while the proper src/
> > > > href address is: mysite.com/default_field/files/file.ext
>
> > > > And I have no idea how to correct it in terms of Boltwire. I make a
> > > > 'cosmetic' javascript correction, but it doesn't satisfy me.
>
> > > > One more problem is the cleanURL. I would really appreciate some help
> > > > in the .htaccess text and the corresponding $cleanURL variable.
>
> > > > Thank you for your support,
>
> > > > Bogdan
>
> > > > --
>
> > > > You received this message because you are subscribed to the Google 
> > > > Groups "BoltWire" group.
> > > > To post to this group, send email to [email protected].
> > > > To unsubscribe from this group, send email to 
> > > > [email protected].
> > > > For more options, visit this group 
> > > > athttp://groups.google.com/group/boltwire?hl=en.

--

You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en.


Reply via email to