Support » Plugin: BulletProof Security » Adding a .htaccess file to the root

Viewing 15 replies - 16 through 30 (of 34 total)
  • Thread Starter csbarnard

    (@csbarnard)

    Hi

    So sorry for the delay – I checked and I have the latest version installed .47.7.

    If I disable the plugins folder to see if it is a plugins issue the problem is still there no network dashboard. And if there is no network dashboard – I can’t configure the plugins….

    But I think I’m asking you to help now with a problem that perhaps has nothing to do with BPS?

    I simply can’t access the plugin to get the information you asked for.

    Chris

    Plugin Author AITpro

    (@aitpro)

    Which web host do you have?
    What Hosting Account type do you have? Apache Linux or something else?
    Is your Server configured with CGI or DSO / Apache Module?

    Delete the .htaccess file in your root folder and your wp-admin folder and see if this gets you back into your WP Dashboard.

    Thread Starter csbarnard

    (@csbarnard)

    The host is Liquid Host – if that means anything to you – I think they are part of Resellers Panel…

    Apache Linux
    CGI

    Deeletd both .htaccess and I got the error message that BPS wasn’t properly configured. Tried to jump to the configuration panel from the error message and I’m getting error messages that I don’t have sufficient privileges.

    Maybe the wp-config file need updating, or similar….it can’t be BPS’s fault…:-)

    Chris

    Plugin Author AITpro

    (@aitpro)

    List of Web Hosts that require 644 .htaccess file permissions – 404 permissions are not allowed on these Hosts and will cause a 403 Error

    If you Web Host does not allow locking of your Root .htaccess file/404 file permissions for your Root .htacces file, then go to the BPS Edit/Upload/Download tab page and click on the Turn Off AutoLock button. This will prevent your Root .htaccess file from being automatically locked when you upgrade BPS, which will prevent a 403 Error from occurring on your website.

    webmasters.com
    LiquidWeb.com

    If your Host is LiquidWeb.com then this known issue exists above for your host. There are several hosts that use “liquid” in there hosting name so your host could be a different host.

    There are a few possibilities here since you are getting the error message that you do not have sufficient permissions.

    1. Your folder permissions are set too restrictive. Make sure that your folder permissions are set to 755 and file permissions should be set to 644. Very likely.

    2. You have set group ownership permissions that are blocking you from being able to write to folders. Not likely, but possible.

    3. Your host is using open_basedir and a restriction is blocking the creation of the root .htaccess file. Not likely, but possible.

    4. You have the 404 permission problem on your host that I quoted above. Not likely, but possible.

    5. Another plugin is causing this problem. Deactivate all other plugins and see what happens then. Moderately likely.

    I happened to read this thread and as it is pretty much about what I’m interested in; I’m going to post my question here.

    I have followed the aforementioned guide which means that my wp is installed in public_html/blog and the public html contains index.php (modified) as per:

    Change the following and save the file. Change the line that says:
    require(‘./wp-blog-header.php’);
    to the following, using your directory name for the WordPress core files:
    require(‘./wordpress/wp-blog-header.php’);

    Public_html also contains a copy of the .htaccess file (copied from the “blog” folder just like it says in the guide). So all it contains is the permlinks stuff…

    If I start using bps it will create a new .htaccess file into the “blog” folder. Should I copy the file to public_html or is the one with permlinks rewrites all public_html needs?

    The way I see it, bps should be able to do its job without any modifications to the public_html’s htaccess as all there is in public_html besides the htaccess and the “blog” dir is index.php which redirects to “blog” anyway.

    In brief, should I copy the bps version to public_html?

    Help is much appreciated.

    Plugin Author AITpro

    (@aitpro)

    Yep you can use the WP Default .htaccess file in your /public_html root folder or for a GWIOD site you can download the .htaccess file that BPS creates in your “blog” folder and then just change the RewriteBase and all Rewriterules and upload it to your /public_html root folder. Either way is fine.

    Example:

    Change...
    RewriteBase /blog/
    ...to
    RewriteBase /
    
    Change RewriteRule from...
    RewriteRule . /blog/index.php [L]
    ...to
    RewriteRule . /index.php [L]

    Plugin Author AITpro

    (@aitpro)

    I assume all issues are resolved? If not, then please post another response. Resolving thread.

    Thread Starter csbarnard

    (@csbarnard)

    Hi!

    Just back off break. Happy New Year!

    I’m still trying to find out why I can’t access my super admin in the multisite set up. As mentioned it can’t be BPS causing the problem as I disable the plugins folder (by renaming it) and remove the .htaccess file and the problem is still there.

    So as mentioned I think I’m now describing another problem.

    I have opened another thread for that problem…

    I went through your points, folders directory etc. and everything seems to check out.

    The only thing i can do is come back to this thread when I can see my super admin.

    Thanks for your help!

    Chris

    Thread Starter csbarnard

    (@csbarnard)

    Okay I fixed that issue – the database had not been updated to reflect a change of username – which meant there was no super admin access.

    So I went back and added the code to the .htaccess file from here:

    http://forum.ait-pro.com/forums/topic/bps-html-htaccess-file-for-html-websites-or-subfolders/

    I am still getting a server error message. So here is the requested information:

    WordPress Installation Folder: /
    WordPress Installation Type: Root Folder Installation
    Network/Multisite: Multisite: Multisite is enabled

    WP Permalink Structure: /blog/%postname%/
    Permalinks Enabled: √ Permalinks are Enabled
    PHP Version Check: √ Using PHP5

    DNS Name Server:
    Public IP / Your Computer IP Address: 94.65.70.32
    Server Type: Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
    Operating System: Linux
    Server API: cgi-fcgi – Your Host Server is using CGI.

    Thanks for your help! Really appreciated.

    Plugin Author AITpro

    (@aitpro)

    You just stated that this was a Network/MU installation and BPS sees that this is NOT a Network/MU installation???

    Plugin Author AITpro

    (@aitpro)

    oh never mind i read that wrong.

    Plugin Author AITpro

    (@aitpro)

    What exactly is the problem again?

    Thread Starter csbarnard

    (@csbarnard)

    Hi!

    Basically what I was trying to do was add a .htaccess file to my public_html folder.

    I just wanted to copy the BPS .htaccess from mysite.mysite.com to where I have my splash page.

    It IS a strange setup where i have a basic index.html in my main domain with links to the subdomain and the virtual site. So the splash page has basically two options:

    mysite.mysite.com
    and
    mysite.mysite.com/site2

    Hope that makes sense 🙂

    Chris

    Plugin Author AITpro

    (@aitpro)

    I need to know exactly where you existing site is and then i need to know exactly where the splash page is and i need to know what .htaccess files you are putting where and what you are putting in those .htaccess files.

    Example:

    my MU site is here and the .htaccess file that BPS creates is here:
    mysite.mysite.com/site2/.htaccess

    my splash page is here X and the .htaccess file is here X and the RewriteBase and RewriteRule are X and the index file in that folder is X.

    Thread Starter csbarnard

    (@csbarnard)

    Hi!

    Once again thanks for your time….

    Splash page is here:

    public_html

    The .htaccess I am using has been copied from my WordPress MU installation which is in a subdomain of the main site. You have to think of it as being two completely separate sites.

    I haven’t made any changes to the .htaccess file – so as I mentioned perhaps there are some links that need updating.

    The splash page has two links you can choose from. Link 1 is: mysite.mysite.com (a subdomain) This sub domain is where the MU set up is installed – so in addition to the main wordpress site there is the 2nd virtual site which is mysite.mysite.com/site2.
    The site is set up to use sub folders, even though it’s installed in it’s own subdomain.

    Ultimately you have to think of it as me trying to simply copy the BPS .htaccess file from one site to another – as between the splash page and the WP install and the sub domain they are two separate sites.

    I haven’t come across anyone trying to use WordPress in this way…

    Perhaps I would be asking you can you make me a .htaccess file for my website that is not WordPress. Perhaps that is a better way of looking at it…

    Hope that makes sense…?

    Chris

Viewing 15 replies - 16 through 30 (of 34 total)
  • The topic ‘Adding a .htaccess file to the root’ is closed to new replies.