title: FIXED htaccess rewriterule gives 404 error
body: <p>I'm trying to rewrite /test to /test.php. If I go to the link directly it will give me the php page that works but when I go to /test it just gives a 404 not found error. I have enabled mod_rewrite and given the /var/www 755 permissions. </p>
  
  <p>.htaccess</p>
  
  <pre><code>RewriteEngine On
  RewriteRule ^test test.php [NC]
  </code></pre>
  
  <p>test.com.conf</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
  ServerAdmin webmaster@localhost
  ServerName test.com
  ServerAlias www.test.com
  
  DocumentRoot /var/www/test.com
  &lt;Directory /&gt;
      Options FollowSymLinks
      AllowOverride All
  &lt;/Directory&gt;
  &lt;Directory /var/www/test.com&gt;
      Options Indexes FollowSymLinks MultiViews
      AllowOverride All
      Order allow,deny
      allow from all
  &lt;/Directory&gt;
  
  ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  &lt;Directory "/usr/lib/cgi-bin"&gt;
      AllowOverride None
      Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
      Order allow,deny
      Allow from all
  &lt;/Directory&gt;
  
  ErrorLog ${APACHE_LOG_DIR}/error.log
  
  # Possible values include: debug, info, notice, warn, error, crit,
  # alert, emerg.
  LogLevel warn
  
  CustomLog ${APACHE_LOG_DIR}/access.log combined
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>FIXED: Changed FollowSymLinks to +FollowSymLinks</p>