title: The page isn’t redirecting properly at EC2
body: <p>Dears,
  i have this problem when i tried to access my site</p>
  
  <p>The page isn’t redirecting properly</p>
  
  <p>I Think there are problem at .htaccess</p>
  
  <p>This is my .htaccess Code, 
  I got it when i active 
  AllowOverride All at httpd</p>
  
  <pre><code>    RewriteEngine On
  RewriteCond %{SERVER_PORT} 80 
  RewriteRule ^(.*)$ http://ec2-52-27-245-72.us-west-2.compute.amazonaws.com/$1 [R,L]
  RewriteBase /
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?/$1 [L]  
  redirect 301 /PlaystationCards http://ec2-52-27-245-72.us-west-2.compute.amazonaws.com/All-PlaystationCards
  redirect 301 /Mobile http://ec2-52-27-245-72.us-west-2.compute.amazonaws.com/All-Mobile
  redirect 301 /Xbox http://ec2-52-27-245-72.us-west-2.compute.amazonaws.com/All-Xbox-USA
  redirect 301 /Steam-Cards http://ec2-52-27-245-72.us-west-2.compute.amazonaws.com/All-SteamCards
  redirect 301 /Nintendo http://ec2-52-27-245-72.us-west-2.compute.amazonaws.com/All-Nintendo-USA
  redirect 301 /Games http://ec2-52-27-245-72.us-west-2.compute.amazonaws.com/All-Games
  redirect 301 /beINSport http://ec2-52-27-245-72.us-west-2.compute.amazonaws.com/All-beIN
  redirect 301 /paypal http://ec2-52-27-245-72.us-west-2.compute.amazonaws.com/All-Paypal-USA
  
  &lt;FilesMatch ".(zip|sql)$"&gt;
   Order Allow,Deny
   Deny from all
  &lt;/FilesMatch&gt;
  &lt;IfModule mod_headers.c&gt;
  # WEEK
   &lt;FilesMatch "\.(jpg|jpeg|png|gif|swf|js|css)$"&gt;
      # Header set Cache-Control "max-age=604800, public"
      Header set Cache-Control "max-age=604800, public"
   &lt;/FilesMatch&gt;
  &lt;/IfModule&gt;
  
  #Turn eTags Off
  #By removing the ETag header, you disable caches and browsers from being able to validate files, so they are forced to rely on your Cache-Control and Expires header. Source
  &lt;IfModule mod_headers.c&gt;
      # Header unset ETag
  &lt;/IfModule&gt;
  FileETag None
  
  
  #Compress Text Files
  &lt;IfModule mod_deflate.c&gt;
      # Force compression for mangled headers.
      # https://developer.yahoo.com/blogs/ydn/pushing-beyond-gzipping-25601.html
      &lt;IfModule mod_setenvif.c&gt;
          &lt;IfModule mod_headers.c&gt;
              SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
              RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
          &lt;/IfModule&gt;
      &lt;/IfModule&gt;
  
      # Compress all output labeled with one of the following MIME-types
      # (for Apache versions below 2.3.7, you don't need to enable `mod_filter`
      #  and can remove the `&lt;IfModule mod_filter.c&gt;` and `&lt;/IfModule&gt;` lines
      #  as `AddOutputFilterByType` is still in the core directives).
      &lt;IfModule mod_filter.c&gt;
          AddOutputFilterByType DEFLATE application/atom+xml \
                                        application/javascript \
                                        application/json \
                                        application/rss+xml \
                                        application/vnd.ms-fontobject \
                                        application/x-font-ttf \
                                        application/x-web-app-manifest+json \
                                        application/xhtml+xml \
                                        application/xml \
                                        font/opentype \
                                        image/svg+xml \
                                        image/x-icon \
                                        text/css \
                                        text/html \
                                        text/plain \
                                        text/x-component \
                                        text/xml
      &lt;/IfModule&gt;
  &lt;/IfModule&gt;
  </code></pre>