Author Topic: .htaccess Problem mit .eu Domain  (Read 10190 times)

0 Members and 1 Guest are viewing this topic.

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
.htaccess Problem mit .eu Domain
« on: July 10, 2006, 04:30:42 PM »
Hallo,

komme mit meinem Problem nicht weiter, und find auch keinen passenden Thread dazu:

Verwende folgende .htaccess Datei in den verschiedenen Ordnern:

Code: [Select]
RewriteEngine on

RewriteCond %{HTTP_REFERER} !^http://(www\.)?auf-reisen\.eu(/.*)?$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?malediven-bilder\.de(/.*)?$ [NC]
RewriteRule [^/]+.(gif|jpg|JPG|JPEG|jpeg|css|js|png)$ http://www.malediven-bilder.de/logo_images.gif [R,L]


Das klappt auch toll für die Domain:
http://www.malediven-bilder.de,
jedoch für die Domain:
http://www.auf-reisen.eu ist dann kein Zugriff auf die Dateien möglich.
Nach dem Löschen der .htaccess klappt wieder alles einwandfrei.


Hat jemand eine Idee?

Danke
Kurt





« Last Edit: July 12, 2006, 08:12:03 PM by KurtW »

Offline BartAfterDark

  • Hero Member
  • *****
  • Posts: 520
    • View Profile
Re: .htaccess Problem mit .eu Domain
« Reply #1 on: July 12, 2006, 01:30:26 AM »
Code: [Select]
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?auf-reisen\.eu/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?auf-reisen\.eu$      [NC]

Try this

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: .htaccess Problem mit .eu Domain
« Reply #2 on: July 12, 2006, 06:10:05 AM »
Hi,

thanks, but the code is also not working  :cry:

cu
Kurt

Offline BartAfterDark

  • Hero Member
  • *****
  • Posts: 520
    • View Profile
Re: .htaccess Problem mit .eu Domain
« Reply #3 on: July 12, 2006, 10:47:55 AM »
and this ?

Code: [Select]
RewriteCond %{HTTP_REFERER} !^http://malediven-bilder.de/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://malediven-bilder.de$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.malediven-bilder.de/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.malediven-bilder.de$      [NC]
RewriteCond %{HTTP_REFERER} !^http://auf-reisen.eu/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://auf-reisen.eu$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.auf-reisen.eu/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.auf-reisen.eu$      [NC]

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: .htaccess Problem mit .eu Domain
« Reply #4 on: July 12, 2006, 02:08:12 PM »
Hi,

no, this code is also not working ??????

The page is only normal open, when i delete or rename the .htaccess
 :cry: :cry:

Hmm...
When i put the .htaccess in the root folder for the page, i have a Error 403
But only with the domain auf-reisen.eu


cu
Kurt

Offline honda2000

  • 4images Guru
  • *******
  • Posts: 3.263
    • View Profile
    • Wir machen Internet!
Re: .htaccess Problem mit .eu Domain
« Reply #5 on: July 12, 2006, 02:37:27 PM »
@Kurt, wenn ich es mir recht überlege:

eine .htaccess ist doch keine Frage der Endung einer Top-Level-Domain sondern wenn überhaupt, eine Frage des Hosters!

wenn deine .htaccess mit deiner malediven-bilder.de funktioniert, aber mit der auf-reisen.eu nicht, stll ich mir zuerst die Frage: sind beide URL´s bei ein und dem selben Provider gehostet?? liegen beide eventuell sogar in einem Account???

wenn nicht, würde ich zu allererst die php-info vergleichen, wenn auch das Übereinstimmumg ergibt, den Provider für die .eu mal fragen!

denn: die .htaccess scheint ja korrekt, nur nicht ausführbar
(oder sehe ich was falsch :wink:)

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: .htaccess Problem mit .eu Domain
« Reply #6 on: July 12, 2006, 02:48:33 PM »
Hallo,

ja, das stimmt schon.

Mein Problem.
Die Domains sind beim gleichen Hoster und greifen momentan auch auf den gleichen Ordner zu.


Kurt

Offline BartAfterDark

  • Hero Member
  • *****
  • Posts: 520
    • View Profile
Re: .htaccess Problem mit .eu Domain
« Reply #7 on: July 12, 2006, 03:49:08 PM »
Do your host have cPanel or something simular.
Because there is something called Addon Domains where you can add your second domains and they will work without any problems

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: .htaccess Problem mit .eu Domain
« Reply #8 on: July 12, 2006, 03:58:53 PM »
Hi,

i have only Confixx.
here you can only add subdoamins. For the Domains, i can change the rootfolder in confixx.

cu
Kurt

Offline BartAfterDark

  • Hero Member
  • *****
  • Posts: 520
    • View Profile
Re: .htaccess Problem mit .eu Domain
« Reply #9 on: July 12, 2006, 05:29:34 PM »
Uhm.
What about this then
Code: [Select]
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?malediven-bilder\.de/ [NC,OR]
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?auf-reisen\.eu/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpe [L]
try not to edit anything and only have this code in your .htaccss (for testing)

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: .htaccess Problem mit .eu Domain
« Reply #10 on: July 12, 2006, 06:13:39 PM »
Hi,

thanks, but with the OR in the code malediven-bilder.de also broken :?

i found another Code:
Code: [Select]
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://(www\.)?(domain1\.de|domain2.\de) [NC]

But is also not working.
I think, every is not ok with the .eu domain.

cu
Kurt

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: .htaccess Problem mit .eu Domain
« Reply #11 on: July 12, 2006, 08:09:42 PM »
Hi,

now it is working.
it was a problem with the serverconfig.
I use now the .htaccess in the first posting.
I dont now, what does the Hoster change, but is working  8)

Thanks to all

cu
Kurt

Offline BartAfterDark

  • Hero Member
  • *****
  • Posts: 520
    • View Profile
Re: .htaccess Problem mit .eu Domain
« Reply #12 on: July 12, 2006, 08:11:06 PM »
Great ;)