Free Directory Script
Login/Password:
demo/demo
Instructions: Support:
Using Mod-Rewrite With Your Directory:
Using Mod-Rewrite is completely optional.
By default, the Free Directory Script uses PHP files along with parameters to retreive and display your directory pages to visitors. (i.e. http://www.yoursite.com/directory/links.php?cat=1).

Some people prefer their directory have the appearance of being made up of 'static html' pages. If you're one of those people, here's all you have to do: (Linux/Unix servers only)

Because Mod-Rewrite isn't supported on all virtual hosts, and can occasionally be finicky, be sure to make a backup of the files before you edit them, and test the server after you make the following changes:

To Enable Mod-Rewriting:
  1. Open the /directory/.htaccess file for editing.
  2. Uncomment the mod_rewrite code located on lines 15-19. To remove the comments and make the code 'live', simply remove the # symbol at the beginning of each of the lines. (The image below has arrows pointing at the lines)
Remove the #'s from lines 15,16,17,18 and 19 as shown above.
  1. Open the /directory/_config/config.php file for editing.
  2. Go to line 37 and change the value for MOD_REWRITE from false to true
Change:
37. define ("MOD_REWRITE", false); // if true...

To:
37. define ("MOD_REWRITE", true); // if true...

Changing The File Extension
By default, the above mod-rewrite setup uses .html for the generated page extensions. You may prefer this extension match the rest of your Web site (.shtml, .php, etc.), which can be done by making the following changes:
  1. Open the /directory/.htaccess file for editing.
  2. On line 17, look for the following code in the middle of the line:
....[A-Za-z0-9-]+[^-])(.html)$ mod_rewrite_helper.php?category=....
  1. Change the extension (in brackets) to match what you wish to use and save.
  2. Open the /directory/_config/config.php file for editing.
  3. Go to line 38 and change the value ("MOD_REWRITE_EXT", "html"); to match the extension you wish to use. For example:
Change:
38. define ("MOD_REWRITE_EXT", "html"); //

To:
38. define ("MOD_REWRITE_EXT", "php"); //

You may use whichever extension you wish (provided it is support by your web host).

All Rights Reserved, FreeDirectoryScript.com