htaccess conflict between WordPress and password protected subdirectory
I have found a response on a forum which suggests that the only way of acheiving this is to create a subdomain for the folder which is to be protected, this works fine. Regards
I have found a response on a forum which suggests that the only way of acheiving this is to create a subdomain for the folder which is to be protected, this works fine. Regards
I managed to resolve this myself. Apologies for wasting anyones time. The fix was simple. I just had to add the following piece of code to my .htaccess <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /jack/blog/ RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /jack/blog/index.php [L] </IfModule> Save my permalinks and the problem … Read more
RESOLVED: This issue came about from many warnings in Bing Webmaster Tools. I discovered that I had added these sites to “My Sites” before I moved them over to HTTPS. I had to delete the sites from BWT and add them back again. It now shows that they’re being crawled correctly. Another coder over at … Read more
What happens when you visit /wp-login.php ? Is the .htaccess itself set with proper permissions? My wp-content, wp-admin, and wp-includes all have rwxr-xr-x / 0755 and my wp-login.php, .htaccess all are rw-r–r– / 0644 Is this a fresh install? You can also check the server logs and the last resort, but perhaps the easiest, contact … Read more
Targeting .htaccess file with file_put_contents
Try this: <IfModule mod_rewrite.c> RewriteCond %{HTTP_HOST} ^www\.mydomain\.com [NC] RewriteRule ^(.*)$ http://mydomain/.cl/c/news/.com/$1 [L,R=301] </IfModule>
I figured out my own answer, so am posting it here so if someone else runs into the same problem, they can see what I did. The issue for me was that the base WordPress redirect code: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} … Read more
Not really a WP question, but I do this with dev sites. I don’t think I can give you an absolute answer as to search engines’ behavior, but speaking from experience, adding authentication like htpasswd retroactively would cause an eventual departure from search results. Adding auth proactively has produced effective results for me. The search … Read more
Yes, that will work. Keep in mind, however, that in this way you are only catching the main feed. WordPress generates a lot of other feeds, for instance per category.
Fixing Access-Control-Allow-Origin (CORS origin) for multiple subdomains