View Single Post
Old January 19th, 2008, 2:50 AM   #3 (permalink)
MarkRH
Race Surpass
Super #1
 
MarkRH's Avatar
 
Joined in Jul 2006
Lives in Oklahoma City, OK
Hosted on sh102
1,219 posts
Gave thanks: 18
Thanked 86 times
Well, one thing you will most likely need to do with Wordpress is edit the \wp-includes\vars.php file to force $is_apache to be true in the Server detection section near the bottom:
PHP Code:
// Server detection
//$is_apache = ((strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== false) || (strpos($_SERVER['SERVER_SOFTWARE'], 'LiteSpeed') !== false)) ? true : false;
$is_apache true;
$is_IIS = (strpos($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS') !== false) ? true false
The reason is that $_SERVER['SERVER_SOFTWARE'] has a value of "WebServerX" most likely.

After doing that, then Wordpress will modify the .htaccess file how it sees fit. Here's the Wordpress portion of mine:

Code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
Hope it helps,
Mark H.
MarkRH is offline   Reply With Quote
These users thank MarkRH for this great post!
AskedRelic (January 19th, 2008), Noho Rob (April 20th, 2008)