> But how can I do this - I do not have root on my server... You don't need root access to do mod_rewrite stuff (but it helps!). You can place the directives in a .htaccess file which is a text file placed at the highest web directory you want to be affected by the statements. Some hosting companies won't allow you do use .htaccess files and some restrict it.
Another way to approach this is to use a .htaccess file to include an ErrorDocument statement to redirect all 404 errors to a specific PHP page which looks at the $_SERVER['REQUEST_URI'] and takes action based on its parts (see http://www.php.net/parse_url ). In this case, you don't have to do an actual rewrite but simply examine the requested URL. If you don't care to use parse_url you could split the REQUEST_URI based on the slash character and work with the resulting array elements. I did something like this on the links page for http://www.AccessSanDiego.com where any page with the phrase links at the beginning can be followed by one of a few specific categories and a state. The page shows the relevant links based on the URL. You might also look at the PHP configuration parameter auto_prepend which names a file which is automatically loaded before any other page. This is normally set in the php.ini file by root but you may be able to get it to work with a php_value directive in a .htaccess file. There are several ways to solve problems like this. James _____ James D. Keeline http://www.Keeline.com http://www.Keeline.com/articles http://Stratemeyer.org http://www.Keeline.com/TSCollection http://www.ITeachPHP.com -- Free Computer Classes: Linux, PHP, etc. Summer Semester Begins Jun 20 -- New Classes Start Every Few Weeks. Community email addresses: Post message: [email protected] Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
