RewriteEngine On 

RewriteCond %{HTTPS} off

RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteCond %{HTTP_HOST} ^teachertrainingkerala\.in$ [NC]



RewriteRule ^(.*)$ https://www.teachertrainingkerala.com/blog/$1 [R=301,L]

RewriteCond %{THE_REQUEST} ^.*/index.php 

RewriteRule ^(.*)index.php$ https://www.teachertrainingkerala.com/blog/$1 [R=301,L] 



RewriteRule    ^page-([0-9]).php?$    index.php?page=$1    [NC,L]    # Handle blogs requests

RewriteRule    ^([A-Za-z0-9-]+)-cat.php?$    blog_category_html.php?cat=$1    [NC,L]    # Handle blogs requests



RewriteRule    ^([A-Za-z0-9-]+)-blog.php?$    blog_details_html.php?id=$1    [NC,L]    # Handle blogs requests



RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^ /404.php [L]

