We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Facebook crawler access | Forum

Marcel
Marcel Jan 25 '15

someone has an idea how I give the Facebook crawler access to my .htaccess

I have a https site

This is the error:

https://developers.facebook.com/tools/debug/og/echo?q=https%3A%2F%2Fwww.talkaboutweed.nl%2F



my htaccess:


Options +FollowSymLinks
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [QSA,R=301,L]
AddEncoding gzip .gz
AddEncoding gzip .gzip
<FilesMatch "\.(js.gz|js.gzip)$">
  ForceType text/javascript
</FilesMatch>
<FilesMatch "\.(css.gz|css.gzip)$">
  ForceType text/css
</FilesMatch>
RewriteCond %{REQUEST_URI} !/ow_updates/index\.php
RewriteCond %{REQUEST_URI} !/ow_updates/
RewriteCond %{REQUEST_URI} !/ow_cron/run\.php
RewriteCond %{REQUEST_URI} !/e500\.php
RewriteCond %{REQUEST_URI} (/|\.php1|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$  [NC]
RewriteRule (.*) index.php


RewriteCond %{HTTP_USER_AGENT} ^facebookexternalhit/1.0
RewriteCond %{HTTP_USER_AGENT} ^facebookexternalhit/1.1

RewriteRule ^(.*)$ ogtags.php?$1 [L,QSA]


# Only allow access to the site from the IP's listed below
#order deny,allow
allow from 31.13.24.0/21
allow from 31.13.64.0/18
allow from 66.220.144.0/20
allow from 69.63.176.0/20
allow from 69.171.224.0/19
allow from 74.119.76.0/22
allow from 103.4.96.0/22
allow from 173.252.64.0/18
allow from 204.15.20.0/22
allow from 2401:db00::/32
allow from 2620:0:1c00::/40
allow from 2a03:2880::/32
#allow from all
deny from all