James Wilson
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: subdir / symlinks having htaccess authorization get 404?To close this thread, i will copy what Otto42 responded to my other thread with a solution:
The problem with using subdirectories with authentication is a known issue. A workaround is to create an empty file somewhere called “onerror.html” and then to add these lines to the main .htaccess, before the WordPress rules:
ErrorDocument 401 /path/to/onerror.html
ErrorDocument 403 /path/to/onerror.htmlChange the path as appropriate for your setup, of course.
Forum: Fixing WordPress
In reply to: wp htaccess in subdirectory eats symlinks in rootnot sure if i should post here, or create a new thread, but i discovered that adding the RewriteCond for symbolic links does not work if linking to a folder that has its own .htaccess with authentication built in.
any help or suggestions on this one?
Forum: Fixing WordPress
In reply to: wp htaccess in subdirectory eats symlinks in root@otto: “After doing this, you’ll want to change your .htaccess file to be read only (chmod 444) so WordPress won’t try to overwrite your changes.”
wordpress will reach into my root dir to change the .htaccess even though it sits in a subdir?
Forum: Fixing WordPress
In reply to: wp htaccess in subdirectory eats symlinks in rootwoah, that was quick, thank you very much!
how did you learn htaccess? you have a link to the apache tutorial that will end all suffering for me?
Forum: Fixing WordPress
In reply to: wp htaccess in subdirectory eats symlinks in rootin case you need it for reference, my complete .htaccess file looks like this:
`
Options +FollowSymLinks# BEGIN FAlbum
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^photos/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?$ /wp/wp-content/plugins/falbum/wp/album.php?$1=$2&$3=$4&$5=$6&$7=$8 [QSA,L]
</IfModule>
# END FAlbum# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wp/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
#</IfModule># END WordPress
`