On Dec 4, 2003, at 14:00, Tim M. Sanders wrote:
Do I need to copy the entire block of corresponding links from the DefaultSettings.php file to override all of them? I don't know the variable substituion rules for php. If I copy the block of vars it works.
A string interpolation (variable reference inside a string literal) is evaluated at the time the string is evaluated. So, if you set the variable _after_ it's used, it's too late. You now need to set it again.
RewriteEngine On RewriteRule ^/synergypedia/(.*)$ /synergypedia/wiki.phtml?title=$1 [L]
I'd recommend keeping wiki.phtml and the other 'real files' separate from the virtual rewritten "directory" for the wiki pages. For instance on Wikipedia we have /wiki/ for the wiki pages and /w/ for the scripts and /style/ for the stylesheets, etc. So nothing gets too confused.
-- brion vibber (brion @ pobox.com)