I would like an htaccess script that, when someone goes to mysite.com/foobar.html, checks to see if the file foobar.html exists, and if it DOESN'T, tell it to display pagefromdb.php?page=foobar.html (while leaving the url in the browser as mysite.com/foobar.html).
Here is what I need in pseudo code:
Code: Select all
if file exists {this_page} == false
display pagefromdb.php?page={this_page}
else
display {this_page} //fileI hope I was clear enough...
- Monkey