I have a site where http://mysite.com/wp-content/themes/mytheme/pdf.php creates a pdf of some content based on what's in a cookie.
That URL is pretty ugly. I'd love the url to simply be http://mysite.com/pdf.
I've tried to use mod_rewrite with no success. E.g. In my .htaccess file I have:
RewriteRule ^/pdf$ http://mysite.com/wp-content/themes/mytheme/pdf.php
This just returns a 404. Any ideas what I might be doing wrong?
Thanks.