March 27, 201016 yr Is there a way in WordPress of linking to a file in the theme directory without revealing in the URL that WordPress is installed? For example, say I have a WP site using a theme called "Sam", if I want to link to a PDF file in the theme directory the URL would look something like: www.example.com/wp-content/themes/sam/example.pdf How can I make it so that the file above can be accessed like so: www.example.com/example.pdf Can I just do a normal 301 redirect in the .htaccess file or will that make WP break? Edited March 27, 201016 yr by Sam G
March 28, 201016 yr Author OK it looks like I can't just simply add a RewriteRule into .htaccess because Apache just ignores it (because of the WP rules). Blargh.
Create an account or sign in to comment