Tag: .htaccess

Drupal: Take back control of a folder from Drupal and password protecting it

error.jpeg

By default, Drupal takes control of all subdirectories within its root folder. If Drupal resides within the web root of your site, you will not be able to get to any subdirectories that are non-Drupal related. Drupal will give a “Page Not Found” error on any page that doesn’t have Drupal content associated with it.

Continue reading

Fixing “Too many redirects” error in MediaWiki

I run a wiki for my ParrotCichlid.com fish fancier’s site, based on “MediaWiki.” It had been running fine, except for an increasing problem with spam, but one day it simply stopped working. Browsing to the site would result in the following error message:

Too many redirects occurred trying to open “http://parrotcichlid.com/book/index.php/Main_Page”. This might occur if you open a page that is redirected to open another page which then is redirected to open the original page.


(Click to enlarge image)

Continue reading

OSX and .htaccess files

The other day, I was trying to install some script – and needed to edit an .htaccess file that was supposed to be inside the archive. I couldn’t find it – because it was invisible! I forgot that OSX is Unix based.

Here are some instructions to make those files visible on the local side, and still be able to test your site in local mode. (many thanks to Didier Laget for this tip!)

  • Open your httpd.conf file.
  • Look for the following expression : AccessFileName .htaccess
  • Remove the dot left of htaccess.
  • Save the file.
  • Restart the webserver.

Now you can edit htaccess, it will work, and it will NOT be invisible!

Continue reading