My .htaccess looks like this:
ErrorDocument 401 /error/401.html AuthType Basic AuthName "Password Protected Area" AuthUserFile /var/www/vhosts/funatodev.de/httpdocs/wordpress/.htpasswd AuthGroupFile /dev/null Require valid-user # BEGIN WordPress # END WordPress
But when the first line is included, instead of the login window, I only get a blank page. (Of course, the file /error/401.html exists) I tried adding the following lines:
SetEnvIf Request_URI "^/(error/401\.html|robots\.txt)$" allow_all Order allow,deny Allow from env=allow_all Satisfy any
But that leads to an internal server error
Related Posts:
- How to remove .html from URL?
- How to remove .html from URL?
- Change PHP version on server using either .htaccess or php.ini
- Access-Control-Allow-Origin Multiple Origin Domains?
- wordpress image upload error and htaccess rule explanation
- .htaccess Remove WWW from URL + Directories
- CodeIgniter removing index.php from url
- .htaccess deny from all
- Server unable to read htaccess file, denying access to be safe
- Redirect non-www to www in .htaccess
- Generic htaccess redirect www to non-www
- Mixed Content Page: requested an insecure stylesheet error
- WordPress site hacked. Has .htaccess been hacked?
- Old blog/ and blog/feed/ URLs not working after moving blog to top-level via .htaccess
- .htaccess and 500 error, extra character added
- WordPress .htaccess subdirectory problem
- Prevent users from accessing mp3s in my uploads folder?
- Place static HTML files in path below WordPress page
- Having a custom post slug that clashes with an existing directory
- How do I remove a word from a url in WordPress using .htaccess?
- Add rewrite rule in plugin: with .htaccess in plugin folder or using WordPress functions
- Removing rules from .htaccess
- Domain redirect in WordPress multisite
- Redirect too many times htacces switching to https
- WordPress multisite causing Error 101 (net::ERR_CONNECTION_RESET): Unknown error [duplicate]
- Correct htaccess to display page while also passing in GET parameters
- How to run multiple websites from single WordPress setup
- $_POST empty on submit (same code, same form submits normally on local server)
- WordPress-site can be reached on x.x.x.x/index.php – but not directly on the IP without index.php
- Block access to wp-admin
- WordPress best solution shared theme for consumers and businesses (two url’s one instaltion)
- Redirect “any page/page/number/” to “any page”
- Redirect main domain to subdirectory
- Remove special characters in a URL
- Alias ‘wp-content’ directory to something shorter (framework?)
- WordPress multisite htaccess redirection to new domain
- Removing code added to htaccess with insert_with_markers
- CDN + WP Admin Query – .htaccess redirection
- How to disable the default WordPress redirect to non-www URLs?
- How to redirect subcategories to a page?
- If I change permalink structures, can I use htaccess to permanantly redirect links?
- Redirect All Search Links Containing – to + on WordPress
- Page preview is shown, updating page gives 404 error
- External content won’t load in iframe in Safari
- Redirecting old permalink structure to new in htaccess
- How to write .htaccess so that https is on for subpages only but not the home page
- Custom rewrite rule, url returning 404
- mod_rewrite doesn’t work as I want even with JSON API Plugin disabled
- Htaccess https 301 problem
- Cannot login to WordPress site after changing .htaccess for security purposes
- add_rewrite_rule to remove /category/ from permalink
- Rewrite vs Redirect from ?p={ID}
- Hosting 2 WordPress websites in /public_html/ & /public_html/subdirectory/ at the same time
- Force redirect single.php to index
- How to forward all requests starting with a specific folder name to the same folder
- Issue redirecting ‘blog’ to ‘news’ in WordPress using .htaccess
- .htaccess Non-‘www’ to ‘www’ Subdomain Redirection Only Works for Homepage
- How to Deny Access to No Referrer Requests on Multiste with Mapped domains
- Having WordPress control only certain pages with .htaccess?
- Use two different index pages
- Moving wordpress to different url/server creates redirect loop
- Rewrite specific action url
- Redirect old query string URLs to new add_rewrite_rule URL
- 301 Rewriting htaccess
- How to execute WordPress as though it is in the root folder while it is installed in a subdirectory?
- old permalinks not found
- A question about .htaccess
- How to serve WordPress folder over subdomain?
- Multisite htaccess file causing segfault (Segmentation fault 11)
- Exclude subfolder in WordPress permalink
- How to allow only vpn access to dashboard on Bitnami WordPress by IP address restricting
- WordPress pagination broken for page 2,3 with custom permalink. Redirects to baseurl
- ErrorDocument 410 gives me back a 302 header
- Woocommerce posts and products links works only once and then get 404 error
- Blocking wp-login in HTACCESS has also blocked password protected pages
- How to create multiple Rewrite-Rule for various site in single htaccess?
- Pages in wp-admin is not found 404
- Help with .htaccess setup to hide WordPress Directory
- htaccess redirect to path
- wp-admin and wp-login.php not Accessible after Cloudflare
- Redirect to homepage if attmpting to leave intranet [closed]
- Subfolder renaming
- redirect 301 with special character like WIX site “#!”
- How to rewrite a folder in WordPress?
- Targeting .htaccess file with file_put_contents
- Redirect Loop in Regex Moving to HTTPS
- .htaccess file changes disappear
- .htaccess help to a beginner
- Debugging a redirect loop affecting only certain pages
- WordPress login bug. Need an emergency solution
- Issue with permalinks for custom post type
- .htaccess and virtual host configuration for WP in its own directory
- 403 forbidden due to .htaccess?
- .htaccess not working in WordPress
- How to rename the WordPress wp-login.php running on IIS6?
- Some images 404
- WordPress redirect from one directory to another but exclude wp-admin and wp-login.php
- htaccess strip url
- How to use multiple 404 Error Pages in WordPress
- How to get Apache2 to redirect to a subdirectory