
|
demo/demo
|
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:
Remove the #'s from lines 15,16,17,18 and 19 as shown above.
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:
....[A-Za-z0-9-]+[^-])(.html)$ mod_rewrite_helper.php?category=....
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 |
|