Skip to content

Instantly share code, notes, and snippets.

@maximevalette
Created August 17, 2012 09:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maximevalette/3377231 to your computer and use it in GitHub Desktop.
Save maximevalette/3377231 to your computer and use it in GitHub Desktop.
Fixing 404 on external WordPress scripts
<?php
require_once("wp-config.php");
$wp->init(); $wp->parse_request(); $wp->query_posts();
$wp->register_globals(); $wp->send_headers();
<?php
require_once("wp-blog-header.php");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment