htaccess redirect to https://www

I have the following htaccess code: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond !{HTTPS} off RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] </IfModule> I want my site to be redirected to https://www. with HTTPS, and enforcing the www. subdomain, but when I access http://www. (without HTTPS), it does not redirect me to https://www … Read more

authentication issue with rest api – rest_cannot_create

I am using the rest api in WordPress. For authentication I use the Basic authentication plugin (JSON Basic Authentication) I use this request (from both postman and nodejs): POST /wp-json/wp/v2/posts HTTP/1.1 Host: ************** Authorization: Basic ********************* Content-Type: application/json Cache-Control: no-cache { “title”: “test”, “content”: “test”, “status”: “private”, “excerpt”: “test” } When testing locally on my … Read more

What happens when wp_cron is deactivated in WordPress?

In a WordPress 3.5.1 the apache log generates the following error related to wp-cron.php: [18/Jun/2013:10:53:21 +0200] “POST /wp-cron.php?doing_wp_cron=1371545601.7393701076507568359375 HTTP/1.0” 200 211 “-” “WordPress/3.5.1; http://www.foo.com” [18/Jun/2013:10:54:36 +0200] “POST /wp-cron.php?doing_wp_cron=1371545676.3652250766754150390625 HTTP/1.0” 200 211 “-” “WordPress/3.5.1; http://www.foo.com” [18/Jun/2013:10:56:44 +0200] “POST /wp-cron.php?doing_wp_cron=1371545804.4974770545959472656250 HTTP/1.0” 200 211 “-” “WordPress/3.5.1; http://www.foo.com” … More than 700 petitions per hour like this are made … Read more

WordPress Multisite – Multiple subfolders for blogs

I created a network in blog.animals.com, the network is running fine. I can set up blogs like blog.animals.com/chimpanse. This is also working. I like to have multiple (2) subdirectories for each blog, e.g. blog.animals.com/apes/chimpanse blog.animals.com/cats/birma On an address like blog.animals.com/apes should be nothing, it should redirect to blog.animals.com/apes/chimpanse and so on. I tried to achieve … Read more

Implement ssl to a WP docker container [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for WordPress Development Stack Exchange. Closed 5 years ago. Improve this question I was able to setup a WordPress containerised app using the docker-compose.yml file below and it is working fine: wp1: image: … Read more

.htaccess: Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration

I have this error when trying to browse php files locally [Fri Apr 13 19:16:40 2012] [alert] [client 127.0.0.1] C:/AppServ/www/hr-website/.htaccess: Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration, referer: http://127.0.0.1/ what is the problem ? 8 Answers 8