 

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /info-chart/

# 1️⃣ Redirect URLs ending with -jodi.php to clean version
RewriteCond %{THE_REQUEST} \s/+info-chart/([a-zA-Z0-9\-]+)-jodi\.php [NC]
RewriteRule ^ %1-jodi [R=301,L]

# 2️⃣ Redirect URLs ending with -panel.php to clean version
RewriteCond %{THE_REQUEST} \s/+info-chart/([a-zA-Z0-9\-]+)-panel\.php [NC]
RewriteRule ^ %1-panel [R=301,L]

# 3️⃣ Serve clean URLs internally (no .php in browser)
RewriteRule ^([a-zA-Z0-9\-]+)-jodi/?$ jodi_chart.php?alias=$1 [L,QSA]
RewriteRule ^([a-zA-Z0-9\-]+)-panel/?$ panel_chart.php?alias=$1 [L,QSA]
</IfModule>

