Unable to access folders in same level as wordpress installation

It’s not clear from the .htaccess files you’ve posted why you can’t access files/folders outside of your WordPress installation (inside the /websiteWP subdirectory). In fact, you shouldn’t need to add specific exceptions in order to access physical files, since these directives shouldn’t apply to physical files. However, your .htaccess files are misconfigured… If the WordPress … Read more

External content won’t load in iframe in Safari

X-Frame-Options: sameorigin By itself (and in older browsers) this would certainly deny access. However, in compliant browsers you would expect the Content-Security-Policy: header to override this. Assuming you have control over this external content, have you tried setting this header to: X-Frame-Options: allow-from https://example.com Or X-Frame-Options: sameorigin, allow-from https://example.com (Although Safari may not support the … Read more

htaccess, site and staging in subdirectories

Assuming the /wp2 subdirectory containing the staging site has its own WordPress .htaccess file (with the standard WordPress front-controller, see below). Then the .htaccess in the document root should contain something like the the following, above any existing directives, to rewrite all requests to the wp2 subdomain to the /wp2 subdirectory: RewriteEngine On RewriteCond %{HTTP_HOST} … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)