.htaccess stop a php redirect?

I currently have WordPress installed for our site - I'm trying to do a simple php redirect for our site for incoming mobile browsers to be redirected to our mobile site... However, when I put the...

Troubles with sessions

I am facing troubles with sessions codes here is login code: <?php /** * @author Mina Wilson * @copyright 2012 * // EPCI Pharma Survey | Rights Reserved */ // Inialize...

Wordpress - uploading images to one domain but URL should be a different domain

I'm trying to get my head around this. I know Wordpress pretty well but I'm officially confused. I have a subdomain where users can login to wordpress at dev.mysite.com/wp-admin. When they upload...

Wordpress protect file if not logged in

I've in the past protected PDFS when a user is not logged in using the following code : RewriteCond %{REQUEST_FILENAME} ^.*(pdf)$ RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in.*$ [NC] ...

how sessions disabled by .htaccess

I am using the wordpress for my website, i create sub domain and use some php code for it,it works good. the problem is this: when i use the .htaccess for wordpress, my php code can not store the...

How can I protect a wp-content/uploads folder in IIS with web.config only for loggedin users?

I've to protect a Wordress upload folder (wp-content/upload) only for loggedin users. In many other sites (on Apache) I always use this .htaccess rules that redirects all traffic to a router...

Unable to install RPostgreSQL package in R Studio on CentOS 7

I installed PostgreSQL 9.6 with PostGIS 2.3 using one click installer of Enterprise DB available here on my CentOS 7 (x64) Linux based machine. Now I am trying to connect R Studio to Postgres. To...

Parsing JSON content into array (Swift3)

I'm new to JSON and i'm trying to store multiple values in variable. Here I have sample output I got from my site 2016-12-04 22:17:53.137949 API Demo[739:12497] [] nw_host_stats_add_src recv too...

App keeps on crashing when I click in element of recycleview

Why is this app is not working properly when I click on the each item of the recycle view Toast of the position of the item appears but when I click each item(cardview) to open a new activity app...

Wordpress content editor - TinyMCE php file not working properly

I built a very basic little site for my cousin's bakery. I made a Divi Child theme and added only three very basic plugins - Yoast, Photo Gallery and Password-protected. After migrating from...

CORS errors trying to convert remote image to base64 data

I need to convert a remote image into base64 given its URL, but I am running in to CORS errors and not sure how to work around. I've followed some of the solutions on this question:...

Wordpress uploads limited to logged in users

Im using a Gist from Github to limit only logged in users to visit images present in the WP-Content / Uploads folder. Now the script works for the login required part, but when logged in the...

error 500 with plugin called metabox in wp

So I installed this theme called aqura and another one, both of them gave me an error 500 and I kept searching how to overcome that problem till I found out that the problem is in a plugin called...

Restrict image access by URL

I have an image file on my website and I don't want people to directly access this file by URL, so they have to go on my website to view it. e.g.: www.test.com/wp-content/sample.jpg I found a...

External JS Function not Recognized

I am making a modal in a file named modal.html and the content that is to populate the modal is from an external JS file. The content is the string returned by the following function in a JS file...

Adding An id dynamically to WordPress generated divs

I have a wordpress website I am working on using Advanced Custom Fields. Right now I have it dynamically generating divs on a page, would like to do is insert a unique id to each div that...

Woocommerce REST API - Bookings product import

I've been trying to import products with the Woocommerce REST API (v2). Goes great, except when it comes to the 'booking extension' fields. Those are pretty much all underscored (so 'protected')...

How to remove html tags from json data in react native?

In my React Native app i'm fetching json data which contains raw html tags.How to remove the html tags from that?Following is the json response i'm getting [{ "data": { "course": { "id":...

Wordpress one time access to password protected page

I am creating a wordpress page which is password protected. It holds a form which needs to be submitted after a timed period of 3h. After that period the user should be logged out, no matter...

Wordpress site redirecting to https

We have written scripts to redirect our website to https but when we use Security Headers IO, the site reports our site is not redirecting to https. Let me post our script for reference. We use...

Exclude a specific php file from wp-content .htaccess

I have a wordpress theme which calls a dynamic css file called frontend.css.php which is located at wp-content/my-theme/assets/dynamic/frontend.css.php For security purpose, i've obviously...

.htaccess is giving 500 internal server error

I made many searches over the web regarding this issue and found noting related to my case as I'm already enabling the rewrite_module I'm using (Windows - Wamp) This is what I get in...

What is the reason for a response of a page full of strange encoded characters in PHP

I'm stuck in this issue for a week and could not find a solution. I'm using opencart v2.2 in Wamp environment. I'm getting the below response while accessing categories or products pages,...

Custom Upload Directory does not change attachment meta

I'm trying to make a download script for a password protected wordpress site. To make use of PHPs readfile() function I need to retrieve the full attachment URL based on it's ID i am passing to...

limit access to wordpress users to folders and php files

First, sorry for my english. I am developing a web application that works on wordpress. I have a folder called GSC, and inside it is my application. The problem I have, is when I have to control...

Wordpress upload folder permissions 751

I want to protect my images on my wordpress site. So I changed the folder permissions of the following folders to...

Suspicious unknown blog post at WordPress

a few days back I noticed a few things on my WordPress site One ad in the header and one in the footer Hundreds of new blog posts which I didn't post Here are the things I did to prevent this...

.htaccess rules for Wordpress in subdirectory

I use such .htaccess rules to hardening wordpress and redirect to https: # Block IPS for login <Files "wp-login.php"> Require all denied Require ip xxx.xx.xx.xx Require ip...

Prevent direct access to uploads folder for non-loggedin user (WordPress)

I want to prevent non-logged in user to direct access from uploads folder inside wp-content. I have tried by putting the following rules in htaccess.conf in the AWS Lightsail server. After that,...

Facing Fatal error with my Elementor website Fatal error: Access level to Molla_Element_Section::get_html_tag() must be protected

The Error my website displays is below: Fatal error: Access level to Molla_Element_Section::get_html_tag() must be protected (as in class Elementor\Element_Section) or weaker...