Hi. I'm having a bit of a problem with my blog, please read below for details. Thanks for reading!!!
Basics
- My site is: http://mfields.org/
- WordPress is installed in webroot.
- /portfolio/ is a physical directory with an index file which uses:
require_once '../wp-blog-header.php';to include WordPress temple + functions.
Overview of Problem
I have a custom application at http://mfields.org/portfolio/ which showcase my paintings and designs. when you visit the address, all works fine, but if you click on one of the thumbnails:
http://mfields.org/portfolio/piece/66/extinction/
You will notice the WordPress is serving a "404 Not Found" status code.
I am using the following code in .htaccess before the WordPress generated code:
RewriteRule ^portfolio/([0-9]+)/$ /portfolio/?p=$1 [QSA,L]
RewriteRule ^portfolio/piece/(.*)/(.*)/ /portfolio/piece.php?p=$1 [QSA,L]
RewriteRule ^portfolio/piece/(.*)/ /portfolio/piece.php?p=$1 [QSA,L]
Does anyone know how to trick Wordpress into serving up a 200 for a 'non-WordPress' resource? Or, perhaps a way to register my rewrite rules through actions/filters. I just need WordPress to understand that these rewritten urls are valid resources and not 404's
All help is appreciated,
Thanks!