bigbikkuri
02-05-2007, 05:06 AM
I`m using the latest version of MAMP so I`ve got php5 and apache2, and I`ve setup my httpd.conf for AddType application/x-httpd-php to parse both .php and .html files.
Using a .htaccess file, I`ve written the following mod_rewrite rule:
RewriteEngine on
RewriteRule ^movies/title/([A-Za-z0-9]+)/?$ /movies/yourmovie.html?title=$1
and I get a non-css`d non-php`d page with only some of the content. However if I have
RewriteEngine on
RewriteRule ^movies/title/([A-Za-z0-9]+)/?$ /movies/yourmovie.html?title=$1 [R]
everything displays fine.
BUT - I would like it so the user never sees the php notation, so I would like to not use [R].
Is there a way in the AddType that I can have php parse `directories?` Or is there something else I`m missing (like some code that parses the file and sends the data before rewriting the URL)?
Many thanks for any insight.
Using a .htaccess file, I`ve written the following mod_rewrite rule:
RewriteEngine on
RewriteRule ^movies/title/([A-Za-z0-9]+)/?$ /movies/yourmovie.html?title=$1
and I get a non-css`d non-php`d page with only some of the content. However if I have
RewriteEngine on
RewriteRule ^movies/title/([A-Za-z0-9]+)/?$ /movies/yourmovie.html?title=$1 [R]
everything displays fine.
BUT - I would like it so the user never sees the php notation, so I would like to not use [R].
Is there a way in the AddType that I can have php parse `directories?` Or is there something else I`m missing (like some code that parses the file and sends the data before rewriting the URL)?
Many thanks for any insight.