title: GoDaddy .htaccess for a subdomain
body: <p>I have been developing a website, and my .htaccess for a subdomain doesn't seem to be working right.</p>
  
  <p>The .htaccess file in my subdomain.</p>
  
  <pre><code>DirectoryIndex index.php
  Options -MultiViews
  
  RewriteEngine on
  
  # external redirect from actual URL to pretty one
  RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/+home\.php\?page=([^\s&amp;]+) [NC]
  RewriteRule ^ /%1? [R=302,L]
  
  # internal forward from pretty URL to actual one
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^([^/]+)/?$ home.php?page=$1 [L,QSA]
  </code></pre>
  
  <p>When I goto my subdomain, I can get to me index.php, but when I goto my home.php or /home etc it doesn't seem to work, and redirects to my 404 page (which has been defined in my root directory.</p>
  
  <p>My Root Directories .htaccess file:</p>
  
  <pre><code>Options -MultiViews
  
  RewriteEngine on
  
  ErrorDocument 404 http://example.ca/error?id=404
  ErrorDocument 403 http://example.ca/error?id=403
  ErrorDocument 500 http://example.ca/error?id=500
  
  RewriteCond %{http_host} ^www\.james-emerson\.ca [NC]
  RewriteRule ^(.*)$ http://james-emerson.ca/$1 [R=301,NC]
  
  RewriteCond %{REQUEST_FILENAME} !-d 
  RewriteCond %{REQUEST_FILENAME}\.php -f 
  RewriteRule ^(.*)$ $1.php
  
  RewriteRule ^home$ index.php
  </code></pre>
  
  <p>My Root looks something like:</p>
  
  <pre><code>/
   - content/
   - include/
   - sites/
     - external/
       - sbfg/ (subdomains subdirectory)
         - content/
         - include/
         - .htaccess
         - index.php
         - home.php
       - ...etc...
  
   - .htaccess
   - index.php
   - ...etc...
  </code></pre>
  
  <p>If you can help, I would be grateful. Thanks in advance.</p>