Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: grml: why doesn't my .htaccess work???  (Read 7869 times)

0 Members and 1 Guest are viewing this topic.

pablo4711

  • Coppermine newbie
  • Offline Offline
  • Posts: 17
grml: why doesn't my .htaccess work???
« on: April 22, 2005, 10:10:19 am »

hello!

i create in my directory www.xyz.de/coppermine a .htaccess with this code:
Code: [Select]
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?xyz\.de(/.*)?$ [NC]
RewriteRule \.(gif|jpg|jpeg|GIF|JPG|JPEG)$ http://www.xyz.de/icons/copyright.gif [R,L]

if i reffer to a picture in the protected directory, there is displayed a "broken-link-picture" and not my rewrite-picture "copyright.gif".
and if i want to open my cpg (www.xyz.de/coppermine/index.php) there just comes
Quote
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, service@webmailer.de and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

please help me!
Logged

biesky83

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: grml: why doesn't my .htaccess work???
« Reply #1 on: April 23, 2005, 01:00:41 am »

think about what you just wrote. you created a rewrite rule in your coppermine ROOT DIRECTORY. you want to place that .htaccess in your albums directory, not the root. Also Im on an apache server and this is what my file looks like:

Code: [Select]
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://www.yoursitename.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.youristename.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://yoursitename.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://yoursitename.com$      [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp.*.*jpg|jpeg|gif|png|bmp)$ http://www.urlOFwhereYOUwantTHEMdirected.com [R,NC]
Logged

pablo4711

  • Coppermine newbie
  • Offline Offline
  • Posts: 17
Re: grml: why doesn't my .htaccess work???
« Reply #2 on: April 26, 2005, 12:49:38 pm »

what do you mean?
where i have to place the file? in the root- or in the cpg-directory?!  ???
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: grml: why doesn't my .htaccess work???
« Reply #3 on: April 26, 2005, 04:29:47 pm »

biesky83 said to put it into your coppermine 'albums' directory.
Logged

pablo4711

  • Coppermine newbie
  • Offline Offline
  • Posts: 17
Re: grml: why doesn't my .htaccess work???
« Reply #4 on: April 28, 2005, 04:22:19 pm »

after creating this .htaccess-file...
Code: [Select]
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://www.xyz.de/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.xyz.de$      [NC]
RewriteCond %{HTTP_REFERER} !^http://xyz.de/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://xyz.de$      [NC]
RewriteRule .*\.(jpg|jpeg|JPG|JPEG|gif|png|bmp.*.*jpg|jpeg|JPG|JPEGgif|png|bmp)$ http://www. xyz.de [R,NC]
...in the www.xyz.de/coppermine/albums/-directory, everything i can see on my cpg is that:

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.xyz.de%2Fdoof.jpg&hash=d8ad49630beacf9c3afc094ff058e9bd3e77bec4)

why?  ???
« Last Edit: February 18, 2009, 03:32:41 pm by pablo4711 »
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: grml: why doesn't my .htaccess work???
« Reply #5 on: April 28, 2005, 04:29:36 pm »

I see the images fine in Firefox and IE. Try clearing your cache.
Logged

pablo4711

  • Coppermine newbie
  • Offline Offline
  • Posts: 17
Re: grml: why doesn't my .htaccess work???
« Reply #6 on: April 28, 2005, 04:49:44 pm »

I see the images fine in Firefox and IE. Try clearing your cache.
after taking the screenshot, i removed the htaccess...
i took it, because the cpg should run again.  ;)
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: grml: why doesn't my .htaccess work???
« Reply #7 on: April 29, 2005, 05:47:06 am »

I see the images fine in Firefox and IE. Try clearing your cache.
after taking the screenshot, i removed the htaccess...
i took it, because the cpg should run again. ;)
You should have noted what you had done so I (and anyone else) would not have wasted my time troubleshooting a non-existing issue.
Logged

pablo4711

  • Coppermine newbie
  • Offline Offline
  • Posts: 17
Re: grml: why doesn't my .htaccess work???
« Reply #8 on: April 29, 2005, 09:57:19 am »

was is?
ich hab doch geschrieben, was ich gemacht habe und durch das bild dokumentiert, was passiert ist, oder?
natürlich habe ich das ganze rückgängig gemacht, damit cpg übrhaupt wieder läuft und meine freunde drauf zugreifen können!
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: grml: why doesn't my .htaccess work???
« Reply #9 on: April 29, 2005, 04:36:09 pm »

was is?
ich hab doch geschrieben, was ich gemacht habe und durch das bild dokumentiert, was passiert ist, oder?
natürlich habe ich das ganze rückgängig gemacht, damit cpg übrhaupt wieder läuft und meine freunde drauf zugreifen können!
Because sometimes people have trouble seeing images and others do not. That's why it's called problem replication. ::)

Since you want to continue to be rude and waste my time by posting in a foreign language so that I have to use a translator, I'm out of this thread.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.