Jump to content

Cancel Old Apache .htaccess File


Recommended Posts


hum.. ill rephrase it

i have my website root folder "htdocs". inside theres a .htaccess file (using apache).

theres another folder "htdocs/Macbeth". the problem is that the .htacess file in htdocs still modifies the setting in the other folder (macbeth) because thats how apache works. i need a way to cancel the settings from the .htaccess so they dont get used in the Macbeth folder.

Link to comment
Share on other sites

  • 3 weeks later...

Hmm...

Got it done yet?

If you don't want to use external apps, then just make another .htaccess to put in your folder, with the exact opposite directives of the one on top of all folders. We could help if you posted what the _initial_ access file said, so that we could work out the opposite of it.

Link to comment
Share on other sites

ErrorDocument 400 /errors/400.php
ErrorDocument 401 /errors/401.php
ErrorDocument 403 /errors/403.php
ErrorDocument 404 /errors/404.php
ErrorDocument 500 /errors/404.php

i want to cancel that and put it back to the default

Link to comment
Share on other sites

Ah, then no need of the CGI script that I initially suggested.

ErrorDocument 400 default
ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 500 default

:)

Does it work as wanted, now?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...