Problem When you attempt to view a page that is located within a CMS (Drupal, WordPress, Joomla, etc) site folder and uses a .htpasswd file, you are redirected to the site’s 404 error page. Cause When authentication is needed, it may be searching for a files on the server with the name “401.shtml” or similar. This request… Continue reading Error 404 when viewing a page protected with a .htpasswd file
Month: June 2013
.gitignore file not ignoring it’s specified files
Problem You have a repository with a .gitignore file. However, the files are still showing tracked changes. Solution Using GIT Bash, navigate to the repository folder (e.g. “cd C:\Projects\Web”) Make sure you commit any changes before proceeding to the next step. Run this command to empty the repository’s index: git rm -r –cached . Once that… Continue reading .gitignore file not ignoring it’s specified files
Find the full path to a file on a web server
You may need to know the full path to a web directory, perhaps for a script that requires it or setting up a .htpasswd file. To do this, create a PHP file in the directory you want to find the path to. Put the following code into it: <?php echo dirname(__FILE__); ?> Run the file… Continue reading Find the full path to a file on a web server
How to write to NTFS drives in Mac OS X
NTFS writing is not officially supported in Mac OS X Problem By default, Mac OS X can not write to NTFS formatted drives (see here for more information) without a third party driver. Solution Open Terminal. Go to your Applications folder. Open the Utilities folder. Open the Terminal application. Enter the following code and press… Continue reading How to write to NTFS drives in Mac OS X
Remove Weekends from JQuery UI Datepicker
To remove weekend days from the JQuery UI Datepicker plugin, add the following CSS to your stylesheet: .ui-datepicker-week-end{display:none}