RewriteEngine On 



RewriteCond %{HTTPS} off



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



RewriteCond %{HTTP_HOST} ^teachertrainingchennai\.com$ [NC]







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



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



RewriteRule ^(.*)index.php$ https://www.teachertrainingchennai.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]



