{"id":1284,"date":"2016-09-12T11:38:28","date_gmt":"2016-09-12T09:38:28","guid":{"rendered":"http:\/\/www.axew3.com\/w3\/?p=1284"},"modified":"2024-09-21T22:07:09","modified_gmt":"2024-09-21T20:07:09","slug":"phpbb-htaccess-set-avatars-images-available-over-your-domain","status":"publish","type":"post","link":"https:\/\/www.axew3.com\/w3\/2016\/09\/phpbb-htaccess-set-avatars-images-available-over-your-domain\/","title":{"rendered":"phpBB images and .htaccess:<br \/>how to set phpBB avatars images available over all your domain"},"content":{"rendered":"<p>On Apache server, the default phpBB <em>.htaccess<\/em> file in <em>phpBB\/images\/avatars\/upload<\/em> folder, by default, is setup to deny access to images files if these are requested by an external resource, or the call to images files are done outside the phpBB installation folder.<\/p>\n<p>So, to get working WP_w3all avatar option, it is required to edit the default <em>.htaccess<\/em> file of phpBB that reside inside <em>phpBB\/images\/avatars\/upload<\/em> folder, setting it to serve images for requests that are done within your domain(s) or localhost test server. You could also remove or disable the <em>.htaccess<\/em>, but you are noticed that in this case, images on this folder if linked from external sites, are accessible.<\/p>\n<p>The default <em>phpBB\/images\/avatars\/upload\/<strong>.htaccess<\/strong><\/em> file look like this:<\/p>\n<pre class=\"lang:default decode:true \">&lt;Files *&gt;\r\n\tOrder Allow,Deny\r\n\tDeny from All\r\n&lt;\/Files&gt;<\/pre>\n<p>so you&#8217;ll edit it, allowing instead requests that are done from your host with something like this (this first example is for localhost):<\/p>\n<pre class=\"lang:default decode:true \">&lt;Files *&gt;\r\n\tOrder deny,allow\r\n\tDeny from All\r\n\tAllow from 127.0.0.1\r\n        Allow from ::1\r\n&lt;\/Files&gt;<\/pre>\n<p>this example instead is for an online site:<\/p>\n<pre class=\"lang:default decode:true \">&lt;Files *&gt;\r\nOrder deny,allow\r\nDeny from all\r\nAllow from axew3.com\r\n&lt;\/Files&gt;<\/pre>\n<p><strong>on Unix\/Linux<\/strong> systems, you may also check for <strong>correct folder chmod<\/strong> in case the above still not let you to get available avatars, from the phpBB <strong>avatar&#8217;s folder.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>On Apache server, the default phpBB .htaccess file in phpBB\/images\/avatars\/upload folder, by default, is setup to deny access to images files if these are requested by an external resource, or the call to images files are done outside the phpBB installation folder. So, to get working WP_w3all avatar option, it is required to edit the [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[74,75],"class_list":["post-1284","post","type-post","status-publish","format-standard","hentry","category-wordpress-phpbb-integration","tag-htaccess-avatars-phpbb","tag-wp_w3all-avatars-htaccess"],"_links":{"self":[{"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/posts\/1284","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/comments?post=1284"}],"version-history":[{"count":24,"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/posts\/1284\/revisions"}],"predecessor-version":[{"id":1549,"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/posts\/1284\/revisions\/1549"}],"wp:attachment":[{"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/media?parent=1284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/categories?post=1284"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.axew3.com\/w3\/wp-json\/wp\/v2\/tags?post=1284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}