RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{THE_REQUEST} ^.*/index.php
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^(.*)index.php$ https://www.teachertrainingbangalore.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^teachertrainingbangalore.com$ [NC]
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^(.*)$ https://www.teachertrainingbangalore.com/$1 [R=301,L]

Redirect 301 /faq.php https://www.teachertrainingbangalore.com/
Redirect 301 /specialized_courses.php https://www.teachertrainingbangalore.com/train-the-trainer.php
Redirect 301 /teaching_jobs_bangalore.php https://www.teachertrainingbangalore.com/teaching-opportunities-in-bangalore.php
Redirect 301 /testimonials.php https://www.teachertrainingbangalore.com/
Redirect 301 /promotion_of_the_month.php https://www.teachertrainingbangalore.com/promotions.php
Redirect 301 /about_the_courses.php https://www.teachertrainingbangalore.com/about-us.php
Redirect 301 /about.php https://www.teachertrainingbangalore.com/about-us.php
Redirect 301 /specialised_courses.php https://www.teachertrainingbangalore.com/train-the-trainer.php
Redirect 301 /board_of_academics.php https://www.teachertrainingbangalore.com/
Redirect 301 /benefits_of_pre_school_teaching.php https://www.teachertrainingbangalore.com/
Redirect 301 /brand_change.php https://www.teachertrainingbangalore.com/
Redirect 301 /about_courses.php https://www.teachertrainingbangalore.com/about-us.php
