Announcement

Collapse
No announcement yet.

Exclude directories within .htaccess

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • William Thomas Jr
    commented on 's reply
    Then you need only to add an htaccess with only the following: http://www.htaccesstools.com/article...rd-protection/

  • Ordovicium
    replied
    Originally posted by William Thomas Jr View Post
    In your root directory you should have http redirected to https in .htaccess. I am unclear why any url under your main domain is not secure:

    https://www.christforums.org/forum/e...pecific-domain



    If that doesn't work a work around maybe to password .htaccess those directories.
    Sorry, missunderstanding. I mean with secured, that these directories must be password protected. So if remove the htaccess in the sub-directory, the site is reachable but not protected anymore.

    Leave a comment:


  • William Thomas Jr
    replied
    In your root directory you should have http redirected to https in .htaccess. I am unclear why any url under your main domain is not secure:

    https://www.christforums.org/forum/e...pecific-domain



    If that doesn't work a work around maybe to password .htaccess those directories.

    Leave a comment:


  • Ordovicium
    replied
    If I delete the htaccess file in the sub-directory it works. But need these directories secured.

    Leave a comment:


  • Ordovicium
    replied
    I use it to redirect to https

    Code:
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

    Leave a comment:


  • William Thomas Jr
    replied
    Couldn't you just put an .htaccess file in one of those directories with:
    Code:
    RewriteEngine Off

    Leave a comment:


  • Ordovicium
    replied
    Push

    Leave a comment:


  • Ordovicium
    started a topic Exclude directories within .htaccess

    Exclude directories within .htaccess

    I use the .htaccess file to run vB5, and I guess there might be the issue. I have some directories, which are not part of the forum. E.g. Testing, SQLBackup, Stats,..
    When I try to access these folders by adding the name after the domain, I get an vB Error.
    Invalid Page URL. If this is an error and the page should exist, please contact the system administrator and tell them how you got this message.
    How to exclude some directories of the RewriteEngine logic?

Related Topics

Collapse

Working...
X