Forum Moderators: phranque

Message Too Old, No Replies

.htaccess making troubles

blocks certain images..

         

demon327

1:48 pm on Jan 23, 2008 (gmt 0)

10+ Year Member



Hello all, i'm working on my drupal website to make it much beter for inline images but i'm having one little problem and thats my htaccess file inmy forum dir thats needed for the user sync(user register/pass reset gets handled by the site..)

now whats the problem:
when the file ".htaccess" is enabled it stops showing new thumbnails..

<snip>

when i rename the htaccess file its showing the thumb without a problem..

the htaccess content:


#drupal rewrite rules
<IfModule mod_rewrite.c>
RewriteEngine on
# Modify the RewriteBase if you are using Drupal in a subdirectory and
# the rewrite rules are not working properly.
#RewriteBase /

RewriteRule ^inbox$ ucp.php?i=pm&folder=inbox [L]

#RewriteCond %{QUERY_STRING} ^mode=login(.*)$
RewriteCond %{QUERY_STRING}!^bypass=true(.*)$
#RewriteRule ^ucp.php(.*)$ ../phpbb/login [L]

RewriteCond %{QUERY_STRING} ^mode=register(.*)$
RewriteRule ^ucp.php(.*)$ ../user/register [L]

RewriteCond %{QUERY_STRING} ^mode=logout(.*)$
RewriteRule ^ucp.php(.*)$ ../phpbb/logout [L]

RewriteCond %{QUERY_STRING} ^mode=sendpassword(.*)$
RewriteCond %{QUERY_STRING} ^mode=resend_act(.*)$ [OR]
RewriteRule ^ucp.php(.*)$ ../user/password [L]
</IfModule>

note: i have mor then 1 folder inside the imagecache folder with thumbs..

i realy hope somebody can help me here on this board cause i'm tired of posting :P

ps: my file system folder is inside "/forum/shared"..

Cheers

[edited by: engine at 2:06 pm (utc) on Jan. 23, 2008]
[edit reason] No urls, thanks. See TOS [webmasterworld.com] [/edit]

jdMorgan

2:33 pm on Jan 23, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



please post some example local URL-paths. What does a script call look like? What does an image call look like?

Jim

demon327

3:26 pm on Jan 23, 2008 (gmt 0)

10+ Year Member



okay.. sorry for the url..

mysite/forum/shared/imagecache/Square_Thumbnail/forum/shared/1218488607_l.jpg

the the image can be seen now,but lets say i upload a new image you cant see it then...

jdMorgan

4:48 pm on Jan 23, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Two questions above, but only one example in your answer -- We need to see the difference between URL-paths that should be rewritten, and those that should not.

Jim

demon327

5:33 pm on Jan 23, 2008 (gmt 0)

10+ Year Member



the html code thats calls the thumb and full version:


<div class="content">
<div class="field field-type-image field-field-afbeelding"><div class="field-items"><div class="field-item"><a href="myurl/forum/shared/Avantasia2007f.jpg" rel="lightbox[cck_image_nodes]" title="Avantasia groeps foto&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;/artikels/avantasia-metal-opera-gold-editie-komt-uit-maart&quot; class=&quot;active&quot;&gt;View Image Details&lt;/a&gt;"><img src="myurl/forum/shared/imagecache/node-thumb/forum/shared/Avantasia2007f.jpg" alt="Avantasia groeps foto" title="Avantasia groeps foto"></a></div>

this is the thumbnail call:


<img src="myurl/forum/shared/imagecache/node-thumb/forum/shared/Avantasia2007f.jpg"

but again:
/forum/shared/imagecache/{insert dir name}/forum/shared/

is always difrent, {dir name} is not always node-thumb :)

i hope this is the info you need :)