Forum Moderators: phranque
I've succeeded in creating a mySQL product database and some dynamic pages that get their info from the d-base. Now the last step to take is to change the dynamic urls to static with a .htaccess/mod_rewrite file.
The dynamic urls look something like this: mydomain.com/titles/title.php?id=9007 . The pages look fine, when called this way.
Then I create this .htaccess file:
RewriteEngine On
RewriteRule ^(.*).*/(.*)/$ title.php?path=$1/$2
When I use this mod_rewrite rule, I only see a blank page with the footer, which by the way is called with a PHP include command. Rest of the PHP stuff cannot be seen at all.
Why does the page behave differently, when mod_rewrite is being used? I'm completely lost! All help is greatly appreciated!
Andreas