Guest User

Untitled

a guest
Nov 19th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. <?php
  2. require_once $_SERVER['DOCUMENT_ROOT'] . '/wp-load.php';
  3. echo get_current_user_id();
  4.  
  5. <IfModule mod_rewrite.c>
  6. Header add Access-Control-Allow-Origin "*"
  7. Header add Access-Control-Allow-Headers "origin, x-requested-with,
  8. content-type"
  9. Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE,
  10. OPTIONS"
  11. RewriteEngine On
  12. RewriteBase /
  13. RewriteRule ^index.php$ - [L]
  14. RewriteCond %{REQUEST_FILENAME} !-f
  15. RewriteCond %{REQUEST_FILENAME} !-d
  16. RewriteRule . /index.php [L]
  17. ErrorDocument 401 /index.php?status=404
  18. ErrorDocument 403 /index.php?status=404
  19. ErrorDocument 404 /index.php?status=404
  20. ErrorDocument 500 /index.php?status=404
  21. </IfModule>
Add Comment
Please, Sign In to add comment