title: htaccess cannot load correct content
body: <p>I have 2 websites: one site that located in the root of the public html folder and another site located in WFM subfolder, the WFM subfolder is facing some problem which is unable to redirect to the correct page that instead of displaying the contents in <strong>domain.com.sg/careers</strong>, it is reloading the <strong>home page</strong> instead.</p>
  
  <p>The strange part is the images, JS and CSS return 200 OK although the files contains the content of index.php. Tested through Google Chrome web developer tools.</p>
  
  <p>domain.com.sg is just a dummy url.</p>
  
  <p>Code on /home/webfire/public_html/.htaccess</p>
  
  <pre><code>Options +FollowSymLinks
  RewriteEngine On
  RewriteBase /
  IndexIgnore *
  Options All -Indexes
  IndexOptions +SuppressHTMLPreamble
  
  RewriteCond %{HTTP_HOST} ^(www\.)?domain\.com.sg  #Not working correctly
  RewriteCond %{REQUEST_URI} !^/wfm   #Not working correctly
  RewriteRule ^(.*)$ /wfm/$1 [L]      #Not working correctly
  
  RewriteCond %{SCRIPT_FILENAME} !-d
  RewriteRule ^([^\.]+)$ $1.php [NC,L]
  
  RewriteCond %{REQUEST_FILENAME} !-f  #For website located in the public_html folder
  RewriteCond %{REQUEST_FILENAME} !-d  #For website located in the public_html folder
  RewriteRule ^(.*)$ index.php/$1/ [L] #For website located in the public_html folder
  
  RewriteCond %{REQUEST_METHOD} ^PUT$ [OR]
  RewriteCond %{REQUEST_METHOD} ^MOVE$
  RewriteRule ^/files/(.*)\.php /files/$1.nophp
  
  
  
  RewriteCond %{HTTP_REFERER} !^http://domain.com.sg/.*$ [NC]
  RewriteCond %{HTTP_REFERER} !^http://domain.com.sg$ [NC]
  
  RewriteCond %{HTTP_REFERER} !^http://www.domain.com.sg/.*$ [NC]
  RewriteCond %{HTTP_REFERER} !^http://www.domain.com.sg$ [NC]
  RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]
  </code></pre>