Drain Hole FAQ

Jan 10, 2008 | Written by Administrator

These are some of the more popular questions asked about Drain Hole.

Why do I get a 404 error when I download a file?

Have you enabled permalinks on your site? Drain Hole requires that permalinks are correctly enabled and that your site is powered through a .htaccess file.

Is mod_rewrite enabled on your server? Drain Hole requires mod_rewrite to be enabled and working. To check if you have this, create a file info.php in the root directory of your server:

<?php phpinfo (); ?>

Then 'run' the file by accessing it: http://yourdomain.com/info.php. The resulting information output will tell you if mod_rewrite is enabled.

I can download files but why are no statistics registered?

It is likely that your files are stored within a publicly accessible location on your website. This means that Drain Hole cannot monitor the files unless you create a special .htaccess file inside the hole directory. Drain Hole can create this for you, but you must enable the 'Create .htaccess file in holes' option before creating your new hole.

The .htaccess file is as follows:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ YOUR-WORDPRESS-DIRECTORY/index.php
</IfModule>

You must change YOUR-WORDPRESS-DIRECTORY with the location of your WordPress installation. For example, /home/username/public_html/. This .htaccess file should be placed inside your download directory (i.e. the directory which you told Drain Hole to use to download from)

Share This

Leave a comment


XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Home | Software | Terms & Conditions | Sitemap | John Godley © 2008
Close
E-mail It