Forum Replies Created

Viewing 2 replies - 31 through 32 (of 32 total)
  • Thread Starter darcmosch

    (@darcmosch)

    Ok, I figured it was something like that, so my htaccess file should say:

    AuthType Basic
    AuthName "FORBIDDEN AREA"
    AuthUserfile "../htdocs/forbidden/.htpasswd"
    Require valid-user
    
    RewriteEngine On
    RewriteBase /blog/
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    Thread Starter darcmosch

    (@darcmosch)

    Oh, yes I forgot to mention I sm doing it on XAMPP on a localhost. I am pretty sure from reading about this problem that it is an htaccess problem but I’m not sure how to fix it exactly. In my XAMPP htaccess is in a separate folder called “forbidden” which I think is what is causing the problem but am not sure how to go about fixing it.

Viewing 2 replies - 31 through 32 (of 32 total)