Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
02-05-2007, 05:06 AM #1
- Join Date
- Mar 2006
- Thanked 0 Times in 0 Posts
php parser not working with /a/b/ mod_rewrite URL
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
RewriteEngine on RewriteRule ^movies/title/([A-Za-z0-9]+)/?$ /movies/yourmovie.html?title=$1 [R]
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.