RewriteBase /
RewriteEngine On
Options +FollowSymLinks
AddDefaultCharset UTF-8 
DefaultLanguage tr-TR
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
 # PHP5 versiyonunu varsayılan olarak kullan
 # AddHandler application/x-httpd-php56 .php


RewriteRule ^hesabim(.*?)$ 								index.php?do=hesabim&s=panel		 																	[QSA]
RewriteRule ^ofisim(.*?)$ 								index.php?do=hesabim&s=ofis&ayar=ofis-bilgi		 														[L,QSA]
RewriteRule ^ilanlarim(.*?)$ 							index.php?do=hesabim&s=ilanlar&onay=aktif		 														[L,QSA]
RewriteRule ^danisman-ilanlari(.*?)$ 					index.php?do=hesabim&s=danismanilan&onay=danaktif		 												[L,QSA]
RewriteRule ^danisman-listesi/(.*?)$ 						index.php?do=hesabim&s=danismanlar&ayar=danisman-listesi												[L,QSA]
RewriteRule ^gelen-mesajlar(.*?)$ 						index.php?do=hesabim&s=bildirim&ayar=gelenmesaj		 													[L,QSA]
RewriteRule ^uyeligim(.*?)$ 							index.php?do=hesabim&s=profil&ayar=profilayar	 														[L,QSA]
RewriteRule ^sosyalmedya(.*?)$ 							index.php?do=hesabim&s=profil&ayar=sosyal	 														[L,QSA]
RewriteRule ^sifredegistir(.*?)$ 							index.php?do=hesabim&s=profil&ayar=sifre	 														[L,QSA]
RewriteRule ^cikis-yap(.*?)$ 							index.php?do=hesabim&islem=cikis	 																	[L,QSA]
RewriteRule ^giris-yap(.*?)$ 							index.php?do=hesabim&islem=girisyap	 																	[L,QSA]
RewriteRule ^uye-ol(.*?)$ 								index.php?do=hesabim&islem=bireysel-uyelik	 															[L,QSA]
RewriteRule ^emlak-talep-formu(.*?)$ 					index.php?do=emlak-talep-formu	 																		[L,QSA]
RewriteRule ^ilantipi/(.*?)/(.*?)/(.*?)$ 				index.php?do=ilantipi&ilansekli=$1&ilantipi=$2&kategori=$3	 											[L,QSA]
RewriteRule ^(.*?)/ilantipi/(.*?)/(.*?)/(.*?)$ 			index.php?do=ilantipi&ilansekli=$1&ilantipi=$2&kategori=$3&kategorialt=$4	 							[L,QSA]
RewriteRule ^ilansekli/(.*?)$ 							index.php?do=emlakkategori&id=$1							 											[L,QSA]
RewriteRule ^kategori/(.*?)$							index.php?do=emlakkategori&id=$1		 																[L,QSA] 
RewriteRule ^(.*?)-ilan-(.*?)$							index.php?do=emlakdetay&ilanseo=$1&id=$2		 														[L,QSA] 
RewriteRule ^danismanlar/ara/(.*?)$						index.php?do=danismanlar&danbul=ara																		[L,QSA]
RewriteRule ^danismanlar(.*?)$							index.php?do=danismanlar	 																			[QSA] 
RewriteRule ^danisman/(.*?)$							index.php?do=danisman&id=$1	 																			[L,QSA]
RewriteRule ^ofisler/ara/(.*?)$							index.php?do=ofisler&ofisbul=ara																		[L,QSA]
RewriteRule ^ofisler(.*?)$								index.php?do=ofisler	 																				[L,QSA]
RewriteRule ^ofis/danisman/(.*?)$						index.php?do=ofis&hareket=danismanlar&ofisid=$1&id=$2													[L,QSA]
RewriteRule ^ofis/(.*?)$								index.php?do=ofis&hareket=ilanlar&id=$1	 																[L,QSA]
RewriteRule ^ilanara(.*?)$								index.php?do=ilanara																					[L,QSA]
RewriteRule ^(.*?)-haber-(.*?)$							index.php?do=haberler&seo=$1&detay=$2																				[L,QSA]
RewriteRule ^(.*?)-haberkategori-(.*?)$					index.php?do=haberler&seo=$1&kategori=$2																				[L,QSA]
RewriteRule ^(.*?)-blog-(.*?)$							index.php?do=blog&seo=$1&detay=$2																				[L,QSA]
RewriteRule ^(.*?)-blogkategori-(.*?)$					index.php?do=blog&seo=$1&kategori=$2																				[L,QSA]
RewriteRule ^(.*?)-sayfa-(.*?)$							index.php?do=sayfa&sayfaseo=$1&id=$2																				[L,QSA]
RewriteRule ^hesapla(.*?)$								index.php?do=hesapla																			[L,QSA]
RewriteRule ^haberler(.*?)$								index.php?do=haberler																			[L,QSA]
RewriteRule ^blog(.*?)$									index.php?do=blog																			[L,QSA]
RewriteRule ^iletisim(.*?)$								index.php?do=iletisim																			[L,QSA]


ErrorDocument 401 /index.php?do=hata
ErrorDocument 403 /index.php?do=hata
ErrorDocument 404 /index.php?do=hata
ErrorDocument 500 /index.php?do=hata
RewriteCond %{HTTP_HOST} ^emlak\.emlak\.capstour\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.emlak\.emlak\.capstour\.com$


RewriteRule ^/?$ "http\:\/\/emlak\.capstour\.com" [R=301,L]

