URL Rewrite Function (first appeared in PHP News Reader v2.2.0)
URL Rewrite is a cool function that make the link more readable, and this is also known as a search-engine friendly feature.
For example, the link to read an article is:
http://webnews.domain.net/pnews/read.php?server=news.nopy.com&group=nopy.test&artnum=21012
If you enable the URL rewriting, the link will become:
http://webnews.domain.net/pnews/article/news.nopy.com/nopy.test/21012
With pnews version greater than v2.2.1 and if
news.nopy.com is your
default news server, the link even becomes shorter:
http://webnews.domain.net/pnews/article//nopy.test/21012
PHP News Reader includes an access control file ".htaccess" to do the transformation for you.
To enable URL Rewrite, you need:
- Apache web server with "mod_rewrite" enabled
- Valid setting for AllowOverride at the program's directory in httpd.conf
- Setting $CFG["url_rewrite"] to true in config.inc.php
For more information about Apache's mod_rewrite, visit
http://httpd.apache.org/docs/misc/rewriteguide.html for details.
Check the Installation Manual for other configuration parameters.