.htaccess 806 B

1234567891011121314151617181920212223
  1. RewriteEngine On
  2. RewriteCond %{HTTP_HOST} www.greenwoodpromise.com
  3. RewriteRule (.*) https://greenwoodpromise.com/$1 [R=301,L]
  4. Redirect 301 /faq-s /eligibility.html
  5. Redirect 301 /promise-leadership /leadership.html
  6. Redirect 301 /contact-us /contact.html
  7. Redirect 301 /greenwood-promise /about.html
  8. Redirect 301 /students-parents /students.html
  9. Redirect 301 /resources-research /research.html
  10. Redirect 301 /phase-2-campaign /about-phase-2.html
  11. Redirect 301 /gallery-2 /investors.html
  12. Redirect 301 /news /news.html
  13. #RewriteEngine On
  14. #RewriteCond %{REQUEST_FILENAME} !-f
  15. #RewriteRule ^([^/]+)/$ $1.html
  16. #RewriteRule ^([^/]+)/([^/]+)/$ /$1/$2.html
  17. #RewriteCond %{REQUEST_FILENAME} !-f
  18. #RewriteCond %{REQUEST_FILENAME} !-d
  19. #RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
  20. #RewriteRule (.*)$ /$1/ [R=301,L]