1) I long time ago moved my favicon.ico to /imgs as updates would overwrite
the file.

2) I use a lot of rewrite rules to deal with moved pages, images that are
really php files, directories that I wan't to be able to run other php code
etc...

Below is an example (from mixed sites) of my rules.  *Not sure it helps or
not...*.

in .htaccess . . .

- - - - -
AddDefaultCharset UTF-8

RewriteEngine On
Options FollowSymlinks
RewriteBase /

# Rewrite to make old pages still work
RewriteRule ^spam.php$ http://www.tnet.com/services/spam [NC,R=301,L]
RewriteRule ^domains.php$ http://www.tnet.com/services/domains [NC,R=301,L]
RewriteRule ^passwdgen.php$ http://www.tnet.com/services/passgen[NC,R=301,L]
. . .

# Image files that are really PHP scripts
RewriteRule ^/?banner.png$ /scripts/banner.php [L]
RewriteRule ^/?avatar.png$ /scripts/avatar.php [L]
RewriteRule ^/?therm.png$ /graph/therm.php [L]

# Don't rewrite these individual files
RewriteCond %{THE_REQUEST} !/robots.txt
RewriteCond %{THE_REQUEST} !/Settings.php
RewriteCond %{THE_REQUEST} !/tnetmailer1_0_0.php
. . .
# Don't rewrite these directories
RewriteCond %{THE_REQUEST} !/flash/(.*)\.
RewriteCond %{THE_REQUEST} !/test/(.*)\.
RewriteCond %{THE_REQUEST} !/imgs/(.*)\.
RewriteCond %{THE_REQUEST} !/scripts/(.*)\.
RewriteCond %{THE_REQUEST} !/graphs/(.*)\.
RewriteCond %{THE_REQUEST} !/images/(.*)\.
RewriteCond %{THE_REQUEST} !/home/files/(.*)\.
RewriteCond %{THE_REQUEST} !/boltwire/farm/img/(.*)\.
RewriteRule ^(.*)$ home/index.php?p=$1 [QSA,L]
- - - - -

Note that I use home for what most would use field for.  So for most,

RewriteCond %{THE_REQUEST} !/field/files/(.*)\.

would be used.

In my home/index.php I have:

$cleanURL='http://www.tnet.com/';
$fieldURL='http://www.tnet.com/home/';

Actually plan on including Settings.php which has sitewide settings and
change the above to

require_once("../Settings.php");
. . .
$cleanURL=$SITE['homepage'];
$fieldURL=$SITE['homepage'] . '/home/';


On Thu, Mar 18, 2010 at 3:04 PM, Markus <[email protected]>wrote:

> The same happens to field/files/favicon.ico but not to field/files/
> pic.png.
>
> As soon as I dive below top-level my favicon disappears. In case
> anyone wants to check if I am causing this with weird htaccess rules:
>
> RewriteEngine on
> RewriteRule ^boltwire/farm/img/.*$ - [L]
> RewriteRule ^field/files/.*$ - [L]
> RewriteRule ^field/(.*)$ field/index.php?p=$1 [QSA,L]
> RewriteRule ^$ /field/ [R=301,L]
>
> Markus
>
> On Mar 18, 10:34 pm, Markus <[email protected]> wrote:
> > Is it in any way possible that BoltWire causes boltwire/farm/img files
> > to "rewritten" falsely?
> >
> > The story:
> >
> > In my /.htaccess I have this line:
> >
> > RewriteRule ^boltwire/farm/img/.*$ - [L]
> >
> > Reads to me: Don't rewrite farm images. Ever.
> >
> > This works on top level pages. But as soon as a page contains a dot,
> > the image address changes from correct to:
> >
> > http://localhost:8888/field/some/page/boltwire/farm/img/pic.png
> >
> > I wondered if my rewrite rule misses the picture because it's wrongly
> > requested?
> >
> > Local images work and are never rewritten with this rule:
> >
> > RewriteRule ^field/files/.*$ - [L]
> >
> > Markus
>
> --
> 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]<boltwire%[email protected]>
> .
> For more options, visit this group at
> http://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