htaccess and htpasswd
Your behavior is logical. the profile.php page is in the protected /wp-admin/ folder. the wp-login.php is in the root (/), which is not protected.
Your behavior is logical. the profile.php page is in the protected /wp-admin/ folder. the wp-login.php is in the root (/), which is not protected.
The correct .htaccess for a multi-site setup looks like this: RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] # uploaded files RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ – [L] RewriteRule . index.php [L] Note the rule for files: That’s how WordPress locates your images. You need also a … Read more
Are you sure your default <Directory /> settings aren’t getting overridden somewhere else? I have mine directly in the vhost and .htaccess and rewrite rules work fine. <VirtualHost *:80> ServerName wp.project DocumentRoot “/Users/chris/Sites/wp.project” <Directory “/Users/chris/Sites/wp.project”> Options Indexes Includes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost>
You should solve this at the plugin level. While this rewrite rule … RewriteRule (.*)/?mysite.com/(.*) /$1/$2 [L,R=301] RewriteRule ^(.*)THUMB /$1 [L,R=301] … does what you are asking for, it is just cosmetic. Find the code that creates the wrong URL and fix that. Give the plugin author feedback; I’m sure s/he wants to know about … Read more
in short this is normal … i guess you added stuff to your .htaccess file between the # BEGIN WordPress and # END WordPress What happened when you changed the permalinks is that WordPress changed that section of the .htaccess file. So you need to open and insert the rewrite rules into your .htaccess file … Read more
Follow instructions on Giving WordPress Its Own Directory in Codex.
Here’s my .htaccess … there are a few differences, perhaps it might be worth comparing: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] # uploaded files RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ – [L] RewriteRule . index.php [L] </IfModule> Also, I assume you … Read more
For permalinks you may have to include index.php before the custom permalink structure within the permalinks settings option panel: /index.php/%postname%/ Just a guess but thats what I had to do on a couple of my sites. Let me know if that does not work and then we can look at your .htaccess file.
If your WordPress installation is in the folder ‘sitename’, than this .htaccess should go in that folder. Not your theme folder. From the WordPress codex: WordPress’s index.php and .htaccess files should be together in the directory indicated by the Site address (URL) setting on your General Options page (http://codex.wordpress.org/Using_Permalinks)
%postname% is not a mod_rewrite rewrite tag. You are going to have to write out the path. mod_rewrite operates before WordPress, or PHP, gets involved. You don’t have access to any of that functionality. If your “contact” page– the page named “contact”– has ID 213 you shouldn’t have to do anything to redirect, though. This … Read more