Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter Oosten Marc

    (@onzinpiet)

    The add-on has it’s own folder with it’s own WP-files and wp-config file. But the content is exactly the same as that of the primary domain.
    In the add-on wp-config file it says: define (‘MULTISITE’, true)

    But the network option isn’t active for the WP-dashboard of the add-on domain.

    Thread Starter Oosten Marc

    (@onzinpiet)

    That can be true, but before adding the hotlink protection codes to the .htaccess file the translator worked without problems…

    Thread Starter Oosten Marc

    (@onzinpiet)

    The first entry of your site works, but not all the entries. Check out your other/older entries. Sometimes the images of your entries are visible in the translator and sometimes they ain’t.

    I tried it in Firefox and IExplorer (latest versions).

    I added some screenshots of the second page of your site:

    https://imageshack.us/photo/my-images/204/25050833.jpg/

    https://imageshack.us/photo/my-images/225/41545532.jpg/

    https://imageshack.us/photo/my-images/13/66764143.jpg/

    Which browser do you use?

    Thread Starter Oosten Marc

    (@onzinpiet)

    I looked at your site and please take notice that it doesn’t work for you neither!! Load your site with the translation and at first (the homepage) your images are visible, but when you open a single post, the images of that post aren’t visible neither (the same thing that happens to me). Check your posts.

    Thread Starter Oosten Marc

    (@onzinpiet)

    I NEVER have said that Google does apply hotlinking!! Where did you read that?? Why do you speak to me this way?

    Thread Starter Oosten Marc

    (@onzinpiet)

    Adding Google isn’t a problem for me, I only asked you a question, but my question is another: it is necessary that the images of my site are visible when someone views it with a translator.

    Like I said in the beginning, my hotlink protection works ok in .htaccess, but the Google translator doesn’t work (the images can’t be seen when translated), you suggested me:
    RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?google\. [NC]

    I added this to the .htaccess but it doesn’t work. My question is: did I put this line in the right place/position or is there another option?

    Here’s the complete current code again like I added it:

    # Hotlink Protection
    <IfModule mod_rewrite.c>
     RewriteEngine on
     RewriteCond %{HTTP_REFERER}     !^$
     RewriteCond %{REQUEST_FILENAME} -f
     RewriteCond %{REQUEST_FILENAME} \.(gif|jpe?g?|png)$           [NC]
     RewriteCond %{HTTP_REFERER}     !^https?://([^.]+\.)?myfirstdomain\. [NC]
     RewriteCond %{HTTP_REFERER}     !^https?://([^.]+\.)?myseconddomain\. [NC]
    RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?google\. [NC]
     RewriteRule \.(gif|jpe?g?|png|bmp)$                             - [F,NC,L]
    </ifModule>
    Thread Starter Oosten Marc

    (@onzinpiet)

    You are right! Nonetheless, the code you gave me doesn’t work, what can I do?

    I added it like this:

    # Hotlink Protection
    <IfModule mod_rewrite.c>
     RewriteEngine on
     RewriteCond %{HTTP_REFERER}     !^$
     RewriteCond %{REQUEST_FILENAME} -f
     RewriteCond %{REQUEST_FILENAME} \.(gif|jpe?g?|png)$           [NC]
     RewriteCond %{HTTP_REFERER}     !^https?://([^.]+\.)?myfirstdomain\. [NC]
     RewriteCond %{HTTP_REFERER}     !^https?://([^.]+\.)?myseconddomain\. [NC]
    RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?google\. [NC]
     RewriteRule \.(gif|jpe?g?|png|bmp)$                             - [F,NC,L]
    </ifModule>
    Thread Starter Oosten Marc

    (@onzinpiet)

    Thanks Ipstenu,
    I added it below the two domains, but it didn’t work…
    Is there a way to give permission only to the translator?

    Thread Starter Oosten Marc

    (@onzinpiet)

    I will try this and will inform you about it.

    Does this permit everything of Google?

    Thanks a lot!

    Thread Starter Oosten Marc

    (@onzinpiet)

    I use this :

    https://pastebin.com/4681dK4p

    Thanks.

    Thread Starter Oosten Marc

    (@onzinpiet)

    Hi Ipstenu,

    I solved the problem I had with the hotlink protection, thank you so much for your information!
    Now I tried to give permission to the translator of Google (to add it to the whitelist), but it doesn’t work. I’ve tried the following 2 options:

    RewriteCond %{HTTP_REFERER} !^http(s)?://(www|translate)\.?google.* [NC]
    RewriteCond %{HTTP_REFERER} !^https://(www\.)?translate.google.com/.*$ [NC]

    I can’t find information about this on the Internet, do you have a suggestion to solve this?

    Thanks a lot in advance!

    Thread Starter Oosten Marc

    (@onzinpiet)

    Hi,

    I’m not an expert in this, but I tried everything that is suggested on the site you mentioned.

    I have 2 domains (the 2nd is a so called add-on domain) and the 1st has WordPress Multisite enabled (sub-directories), I don’t know if that’s the problem.

    I don’t know if you or anybody else can offer an alternative that can help me, honestly I don’t now what more I can do or where to ask for help.

    Thanks.

    Thread Starter Oosten Marc

    (@onzinpiet)

    Hi Ipstenu,
    I tried the last (pastebin) code you gave me but it doesn’t work. And besides that the images of ‘myfirstdomain.com’ don’t appear now. The ones of the seconddomain.com do appear normally.
    Is there some code lacking in the beginning of the codes?
    Thanks a lot for your help!

    Thread Starter Oosten Marc

    (@onzinpiet)

    Hi, I tried what you suggested me in various ways, but it didn’t work. Can you please indicate me where I made an error?

    1. First I tried the following code as entire code for the file:

    <iframe src="https://pastebin.com/embed_iframe.php?i=mcwa37j2" style="border:none;width:100%"></iframe>

    2. After that I tried only the code you suggested me for the file (without WP-codes):

    <iframe src="https://pastebin.com/embed_iframe.php?i=dXSAHmMJ" style="border:none;width:100%"></iframe>

    Is this piece of code always necessary in the .htaccess file?

    <iframe src="https://pastebin.com/embed_iframe.php?i=7tsDDkiN" style="border:none;width:100%"></iframe>

    Thanks!

    Thread Starter Oosten Marc

    (@onzinpiet)

    Thanks a lot for your advice. I’m not an expert on this, sorry for that and for asking the following.

    Can I delete all the code of my .htaccess file and replace them with the codes you gave me (putting my domain names in it)?

    In other words: do I need this content for my .htaccess:
    https://pastebin.com/embed_js.php?i=GQkST1sh

    Or the one you gave me?

Viewing 15 replies - 1 through 15 (of 16 total)