title: htaccess for static php files
body: <p>I am struggling to get my .htaccess file working properly on my GoDaddy web hosting.</p>
  
  <p>I want my URL's to be like:</p>
  
  <p>www.way360group.com/about-us/ -> about-us.php
  www.way360group.com/latest-projects/ -> latest-projects.php</p>
  
  <p>and so on...</p>
  
  <p>Here's my current .htaccess code</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>## EXPIRES CACHING ##
   &lt;IfModule mod_expires.c&gt;
    ExpiresActive On
    ExpiresByType image/jpg "access 1 year"
    ExpiresByType image/jpeg "access 1 year"
    ExpiresByType image/gif "access 1 year"
    ExpiresByType image/png "access 1 year"
    ExpiresByType text/css "access 1 month"
    ExpiresByType text/html "access 1 month"
    ExpiresByType application/pdf "access 1 month"
    ExpiresByType text/x-javascript "access 1 month"
    ExpiresByType application/x-shockwave-flash "access 1 month"
    ExpiresByType image/x-icon "access 1 year"
    ExpiresDefault "access 1 month"
   &lt;/IfModule&gt;
  ## EXPIRES CACHING ##
  
  
  # force ssl
  RewriteEngine On
          RewriteCond %{SERVER_PORT} ^80$
          RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]
  
  
  # Redirect from http://www to http://
      RewriteEngine On
          RewriteBase /
          RewriteCond ${HTTPS} off
          RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
          RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
  
  
  # Rewrite URLs
   RewriteEngine On
    RewriteRule   ^contact?$  contact.php 
      
    RewriteRule   ^what-is-corporate-social-responsibility?$  what-is-corporate-social-responsibility.php 
      
    RewriteRule   ^about-us?$  about-us.php 
      
    RewriteRule   ^latest-projects?$  latest-projects.php 
      
    RewriteRule   ^join-our-newsletter?$  join-our-newsletter.php </code></pre>
  </div>
  </div>
  </p>
  
  <p>I've digged many different posts but couldn't work out a solution.</p>
  
  <p>Thanks in advance!</p>