## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 month"
</IfModule>


#### php.ini file setting
#suPHP_ConfigPath /home/trueorators.com



RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
 

RewriteRule ^index  										index.php				[QSA,L]		
RewriteRule ^search-quran  									search-quran.php 		[QSA,L]		
RewriteRule ^alquran/*$  									alquran.php 				[QSA,L]		
RewriteRule ^alquran-surah/([0-9]+)/([0-9]+)*$  			alquran-surah.php?surah_id=$1&page=$2 	[QSA,L]	
RewriteRule ^alquran-translations/([0-9]+)/([0-9]+)*$  		alquran-translations.php?surah_id=$1&verse_id=$2 	[QSA,L]	
RewriteRule ^alquran-word-by-word/([0-9]+)/([0-9]+)*$  		alquran-word-by-word.php?surah_id=$1&verse_id=$2 	[QSA,L]	
RewriteRule ^alquran-tafseer/([0-9]+)/([0-9]+)*$  			alquran-tafseer.php?surah_id=$1&verse_id=$2 	[QSA,L]	
RewriteRule ^alquran-root/([0-9]+)/([0-9]+)*$  				alquran-root.php?surah_id=$1&verse_id=$2 	[QSA,L]	
RewriteRule ^alquran-root-details/([0-9]+)/([0-9]+)*$  		alquran-root-details.php?root_id=$1&page=$2 	[QSA,L]	
RewriteRule ^alquran-subjects/([0-9a-zA-Z_-]+)/([0-9]+)*$  	alquran-subjects.php?language=$1&page=$2 		[QSA,L]	
RewriteRule ^alquran-sub-topic/([0-9a-zA-Z_-]+)/([0-9]+)/([0-9]+)*$  alquran-sub-topic.php?language=$1&subject_id=$2&page=$3 		[QSA,L]	
RewriteRule ^alquran-words/([0-9]+)/([0-9]+)*$				alquran-words.php?alphabet_id=$1&page=$2 									[QSA,L]	
RewriteRule ^alquran-word-verses/([0-9]+)/([0-9]+)*$			alquran-word-verses.php?word_id=$1&page=$2 									[QSA,L]	

RewriteRule ^search-hadees  									search-hadees.php 		[QSA,L]

RewriteRule ^hadees-name/([0-9a-zA-Z_-]+)/([0-9]+)*$			hadees-name.php?hadith_name=$1&page=$2 									[QSA,L]	
RewriteRule ^hadees-subjects/([0-9a-zA-Z_-]+)/([0-9]+)/([0-9]+)*$	hadees-subjects.php?hadith_name=$1&kitab_id=$2&page=$3 									[QSA,L]	
RewriteRule ^hadees/([0-9a-zA-Z_-]+)/([0-9]+)/([0-9]+)*$			hadees.php?hadith_name=$1&baab_id=$2&page=$3 									[QSA,L]	
RewriteRule ^hadees-details/([0-9a-zA-Z_-]+)/([0-9]+)*$			hadees-details.php?hadith_name=$1&hadith_id=$2 									[QSA,L]	

RewriteRule ^videos/([0-9]+)*$									videos.php?page=$1 									[QSA,L]	
RewriteRule ^watch/([0-9a-zA-Z_-]+)*$							watch.php?video_id=$1 									[QSA,L]	
RewriteRule ^search-videos  									search-videos.php 		[QSA,L]

RewriteRule ^book/([0-9]+)*$  									book.php?contents_id=$1 		[QSA,L]

RewriteRule ^blog/([0-9]+)/([0-9]+)*$  							blog.php?post_cat_id=$1&page=$2 		[QSA,L]
RewriteRule ^blog-post/*$  										blog-post.php 						[QSA,L]
RewriteRule ^post-details/([0-9]+)*$  							post-details.php?post_id=$1 		[QSA,L]

RewriteRule ^design  											design.php 		[QSA,L]

RewriteRule ^seerat-un-nabi/*$									seerat-un-nabi.php 									[QSA,L]	
RewriteRule ^quran-audio/*$										quran-audio.php 									[QSA,L]	
RewriteRule ^advertise/*$										advertise.php 									[QSA,L]	
RewriteRule ^about-us											about-us.php 									[QSA,L]	
RewriteRule ^contact-us											contact-us.php 									[QSA,L]	
RewriteRule ^404												404.php 									[QSA,L]	





RewriteRule ^robots.txt           	robots.txt [QSA,L]
RewriteRule ^sitemap.xml            sitemap.xml [QSA,L]
ErrorDocument 404 http://islamicsayings.com/404