Forum Moderators: phranque
# BEGIN WordPress
RewriteEngine On
RewriteRule ^index\.php$ - [L]
RewriteRule ^([^/.]+)$ /index.php?profile=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
status_header(200);
<?php if($_GET["profile"]!=""){ status_header(200); } ?>
<!DOCTYPE HTML>
<html>
<head>
<?php
header('HTTP/1.0 404 Not Found');
echo 'Hi!';
header('HTTP/1.1 200 OK');
?>
echo 'here is the 200 header'; right after you call the status_header(200) function and then view source to see if there is anything output before your message (maybe some html code, or even just a line break).
[extra blank line here]
Hi!<!DOCTYPE HTML>
<html>
<head>
<?php
header('HTTP/1.0 404 Not Found');
echo 'Hi!';
header('HTTP/1.1 200 OK');
?>
<!DOCTYPE HTML>
<html>
<head>
<?php
// some plugin code
?>