dsVsdsssssss $first = get_posts( array( ‘post_type’ => ‘surah’, ‘posts_per_page’ => 1, ‘orderby’ => ‘menu_order’, ‘order’ => ‘ASC’, ) ); if ( ! empty( $first ) ) { wp_redirect( get_permalink( $first[0]->ID ), 301 ); exit; } } } );
Iske baad:
- Agar koi
https://quranguide.in/surah/kholega, - To woh automatically pehli Surah (jaise Al-Fatihah) par chala jayega.
Aur All Surahs button/menu ko hum /category/all-surahs/ ya apni custom listing page par rakhenge.
Lekin ek baat…
Mujhe lagta hai isse bhi better structure hai:
/surah/= All Surahs listing (professional)/surah/al-fatihah/= Premium single Surah page
Ye WordPress ka standard structure hai, SEO ke liye bhi better hai, aur future me 114 Surahs manage karna bahut aasaan rahega.
Isliye main tumhe archive redirect karne ke bajay premium archive page banane ki salah dunga. Fir homepage se “All Surahs” par click karoge to list khulegi, aur us list se kisi bhi Surah par click karte hi wahi premium page open hoga jaisa tumhare dusre screenshot me tha. Ye approach zyada clean, scalable aur long-term ke liye sahi rahegi. $first = get_posts( array( ‘post_type’ => ‘surah’, ‘posts_per_page’ => 1, ‘orderby’ => ‘menu_order’, ‘order’ => ‘ASC’, ) ); if ( ! empty( $first ) ) { wp_redirect( get_permalink( $first[0]->ID ), 301 ); exit; } } } );
Iske baad:
- Agar koi
https://quranguide.in/surah/kholega, - To woh automatically pehli Surah (jaise Al-Fatihah) par chala jayega.
Aur All Surahs button/menu ko hum /category/all-surahs/ ya apni custom listing page par rakhenge.
Lekin ek baat…
Mujhe lagta hai isse bhi better structure hai:
/surah/= All Surahs listing (professional)/surah/al-fatihah/= Premium single Surah page
Ye WordPress ka standard structure hai, SEO ke liye bhi better hai, aur future me 114 Surahs manage karna bahut aasaan rahega.
Isliye main tumhe archive redirect karne ke bajay premium archive page banane ki salah dunga. Fir homepage se “All Surahs” par click karoge to list khulegi, aur us list se kisi bhi Surah par click karte hi wahi premium page open hoga jaisa tumhare dusre screenshot me tha. Ye approach zyada clean, scalable aur long-term ke liye sahi rahegi.
☪ Surah: surah [40]
بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ
الْحَمْدُ لِلَّهِ رَبِّ الْعَالَمِينَ
الرَّحْمَٰنِ الرَّحِيمِ
fffffffffffffffffffffffffff
ffffffffffffffffffffffff


