title: Redirecting url is not working. apache2.4
body: <p>ubuntu 14.04 and Server version: Apache/2.4.16 (Ubuntu)</p>
  
  <p>The redirect rule is not working or am i missing something ? when i type in the browser, i want to use https:teampass.domain.org  but instead <a href="https://teampass.domain.org/teampass" rel="nofollow">https://teampass.domain.org/teampass</a>  is the only url that works. Am i missiong something? how can i get to use <a href="https://teampass.domain.org" rel="nofollow">https://teampass.domain.org</a> </p>
  
  <p>more /etc/hosts</p>
  
  <pre><code> 127.0.0.1       localhost
   127.0.1.1       teampass
   192.*.*.*   teampass       teampass.domain.org
  
  # The following lines are desirable for IPv6 capable hosts
   ::1     localhost ip6-localhost ip6-loopback
   ff02::1 ip6-allnodes
  ff02::2 ip6-allrouters
  </code></pre>
  
  <p>More /etc/apache2/apache2.conf</p>
  
  <pre><code>  ServerRoot "/etc/apache2"
  
   Mutex file:${APACHE_LOCK_DIR} default
  
   PidFile ${APACHE_PID_FILE}
  
   Timeout 300
  
  
    KeepAlive On
  
    MaxKeepAliveRequests 100
  
    KeepAliveTimeout 15
  
  
  # These need to be set in /etc/apache2/envvars
   User ${APACHE_RUN_USER}
   Group ${APACHE_RUN_GROUP}
  
    HostnameLookups Off
  
    ErrorLog ${APACHE_LOG_DIR}/error.log
  
  
     LogLevel warn
  
   # Include module configuration:
   IncludeOptional mods-enabled/*.load
  
   IncludeOptional mods-enabled/*.conf
  
    # Include list of ports to listen on
    Include ports.conf
  
  
      &lt;Directory /&gt;
  
      Options FollowSymLinks
  
      AllowOverride None
  
      Require all denied
  
     &lt;/Directory&gt;
  
  
    &lt;Directory /usr/share&gt;
  
      AllowOverride None
  
      Require all granted
  
     &lt;/Directory&gt;
  
     &lt;Directory /var/www/html&gt;
      Options Indexes FollowSymLinks
      AllowOverride ALL
      Require all granted
     &lt;/Directory&gt;
  
     &lt;Directory /srv/&gt;
      Options Indexes FollowSymLinks
      AllowOverride None
      Require all granted
       &lt;/Directory&gt;
  
  
    AccessFileName .htaccess
  
  
    &lt;FilesMatch "^\.ht"&gt;
      Require all denied
     &lt;/FilesMatch&gt;
  
  
  
   # Include generic snippets of statements
   IncludeOptional conf-enabled/*.conf
  
    # Include the virtual host configurations:
     IncludeOptional sites-enabled/*.conf
  
  # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
  
  # phpMyAdmin Configuration
   Include /etc/phpmyadmin/apache.conf
  
   #load ssl module
   #LoadModule ssl_module /usr/lib/apache2/modules/mod_ssl.so
  </code></pre>
  
  <p>more /etc/apache2/sites-enabled/default-ssl.conf</p>
  
  <pre><code> &lt;VirtualHost *:443&gt;
      ServerAdmin webmaster@localhost
      ServerName teampass.domain.org
      Serveralias www.teampass.domain.org
      DocumentRoot /var/www/html
  
      ErrorLog ${APACHE_LOG_DIR}/error.log
      CustomLog ${APACHE_LOG_DIR}/access.log combined
      SSLEngine on
  
      SSLCACertificateFile /etc/apache2/ssl/DigiCertCA
      SSLCertificateFile /etc/apache2/ssl/star_domain_org
      SSLCertificateKeyfile /etc/apache2/ssl/teampass.key
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>more /etc/apache2/sites-enabled/teampass.conf</p>
  
  <pre><code> &lt;VirtualHost *:80&gt;
    ServerName teampass
    Redirect permanent /  https://teampass.domain.org/
  
    ServerAdmin webmaster@localhost
    ServerAlias www.teampass.domain.org
    DocumentRoot /var/www/html/teampass
    &lt;Directory /var/www/html&gt;
          AllowOverride All
      &lt;/Directory&gt;
  
       ErrorLog ${APACHE_LOG_DIR}/error.log
       CustomLog ${APACHE_LOG_DIR}/access.log combined
      &lt;IfModule mod_rewrite.c&gt;
              # DO NOT REMOVE
              RewriteOptions Inherit
      &lt;/IfModule&gt;
     &lt;/VirtualHost&gt;
  
  
     &lt;VirtualHost *:443&gt;
      ServerAdmin webmaster@localhost
      ServerName teampass.domain.org
      #ServerAlias www.teampass.domain.org
      DocumentRoot /var/www/html/teampass
  
      SSLCertificateFile /etc/apache2/ssl/star_domain_org
      SSLCertificateKeyfile /etc/apache2/ssl/teampass.key
      SSLCACertificateFile /etc/apache2/ssl/DigiCertCA
      SSLEngine on
      ErrorLog ${APACHE_LOG_DIR}/teampass_error.log
      CustomLog ${APACHE_LOG_DIR}/teampass_access.log combined
  
      &lt;IfModule mod_rewrite.c&gt;
              # DO NOT REMOVE
             RewriteOptions Inherit
      &lt;/IfModule&gt;
      &lt;/VirtualHost&gt;
  </code></pre>