Thank you.
I have a PHP file which contains script that reads the URL and and then pulls out the appropriate page from a database. Currently that PHP file has to be in the URL, like this >>
http://www.librarydynamo.org/read.php/events/home
With the .htaccess file forcing read to be sent through the PHP processor.
I want to get rid of the read.php from the URL but force the browser/server to process the read.php file, which would examine the URL and send the URL directories through a script.
For examples:
http://www.librarydynamo.org/events/home
http://www.librarydynamo.org/articles/wash_post_2_2_08
http://www.librarydynamo.org/dynamos/shaw/calendar/home
Anytime one of these URL's are searched for, it automatically sends all directories after the domain name into the script found in the read.php file.
/events/home
/articles/wash_post_2_2_08
/dynamos/shaw/calendar/home
/x/y/z/a/b/c/~
whatever/whatever/whatever/
The read.php script would take the above retrieved info and process it using a php GET statement like /read.php?url=/events/home
The trick I'm seeking help with is how to I have my .htaccess file take any URL and send it through the script.
I keep getting a page that says Internal Error. Here's is my current .htaccess file >>
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) /read.php/$0
---
Am I totally clueless here... I really just tried to piece together what I've seen in other posts and really don't have a good understanding of these rules.
Any help you can provide would be most appreciated.
Chris O.