Module  : SEF URLs
Version : 1.0.7
Author  : Martijn van Maasakkers <martijn@vanmaasakkers.net>

This module changes all URLs to seo friendly ones. The read links get
the subject in the URL as well.

Installation instructions:
--------------------------

- Unpack the archive;

- Move the directory "sef_urls" to the directory "mods"
  within your Phorum installation;

- Login as administrator in Phorum's administrative interface and
  go to the "Modules" section;

- Setup the required rewrite rules (see below for info);

- Enable the module "SEF URLs".


How to setup the required rewrite rules:
----------------------------------------

If the module is activated, all URLs are translated to the new one using
the default phorum URL generator, so all URLs are properly translated.

This module requires Apache rewrite rules. Apache is a widely used
web server software package. If your webserver is not an Apache server,
then you will not be able to use this module. If you are unsure, then
check with your hosting provider.

To setup the rewrite rules, create or update the file ".htaccess" inside
your Phorum installation directory (mind the starting dot). 
The rewrite rules that have to be added to this file are:

 RewriteEngine On

 # READ RULES
 RewriteRule ^([0-9]*)/([0-9]*)/([0-9]*)/([0-9a-zA-Z\-_=]*)/(.*)$ read.php?$1,$2,$3,$4
 RewriteRule ^([0-9]*)/([0-9]*)/([0-9]*)/(.*)$ read.php?$1,$2,$3

 RewriteRule ^([0-9]*)/([0-9]*)/([0-9a-zA-Z\-_=]*)/(.*)$ read.php?$1,$2,$3
 RewriteRule ^([0-9]*)/([0-9]*)/(.*)$ read.php?$1,$2
 RewriteRule ^([0-9]*)/([0-9]*)$ read.php?$1,$2

 # DEFAULT RULES
 RewriteRule ^([a-z]*)/([0-9]*)/([0-9a-zA-Z=_\-]*)/([0-9a-zA-Z=_\-]*)/([0-9a-zA-Z=_\-]*)$ $1.php?$2,$3,$4,$5
 RewriteRule ^([a-z]*)/([0-9]*)/([0-9a-zA-Z=_\-]*)/([0-9a-zA-Z=_\-]*)$ $1.php?$2,$3,$4
 RewriteRule ^([a-z]*)/([0-9]*)/([0-9a-zA-Z=_\-/:\.?]*)$ $1.php?$2,$3
 RewriteRule ^([a-z]*)/([0-9]*)$ $1.php?$2
 RewriteRule ^([a-z]+)$ $1.php

 
