
RewriteOptions inherit
<IfModule mod_deflate.c>
# Compress HTML, CSS, JavaScript, php, Text, XML and fonts
	AddOutputFilterByType DEFLATE application/javascript
	#AddOutputFilterByType DEFLATE application/json
	#AddOutputFilterByType DEFLATE application/php
	
	AddOutputFilterByType DEFLATE application/atom+xml
	AddOutputFilterByType DEFLATE application/rdf+xml
	AddOutputFilterByType DEFLATE application/rss+xml
	AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
	AddOutputFilterByType DEFLATE application/x-font
	AddOutputFilterByType DEFLATE application/x-font-opentype
	AddOutputFilterByType DEFLATE application/x-font-otf
	AddOutputFilterByType DEFLATE application/x-font-truetype
	AddOutputFilterByType DEFLATE application/x-font-ttf
	AddOutputFilterByType DEFLATE application/x-javascript
	AddOutputFilterByType DEFLATE application/xhtml+xml
	AddOutputFilterByType DEFLATE application/xml

	AddOutputFilterByType DEFLATE font/opentype
	AddOutputFilterByType DEFLATE font/otf
	AddOutputFilterByType DEFLATE font/truetype
	AddOutputFilterByType DEFLATE font/ttf

	AddOutputFilterByType DEFLATE image/png
	AddOutputFilterByType DEFLATE image/svg+xml
	AddOutputFilterByType DEFLATE image/x-icon

	AddOutputFilterByType DEFLATE text/css
	AddOutputFilterByType DEFLATE text/html
	AddOutputFilterByType DEFLATE text/javascript
	#AddOutputFilterByType DEFLATE text/php
	AddOutputFilterByType DEFLATE text/plain
	AddOutputFilterByType DEFLATE text/xml

# Remove browser bugs (only needed for really old browsers)
	BrowserMatch ^Mozilla/4 gzip-only-text/html
	BrowserMatch ^Mozilla/4\.0[678] no-gzip
	BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
	Header append Vary User-Agent
</IfModule>

<IfModule mod_expires.c>
# Enable the mod_expires module
	ExpiresActive On

	ExpiresByType image/jpg "access 1 month"
	ExpiresByType image/jpeg "access 1 month"
	ExpiresByType image/gif "access 1 month"
	ExpiresByType image/png "access 1 month"
	ExpiresByType image/svg "access 1 month"
	ExpiresByType text/css "access 1 month"
	
# Set expiration date to 1 week for all HTML pages
	ExpiresByType text/html "access plus 1 week"
	ExpiresByType text/x-javascript "access plus 1 week"
	ExpiresByType text/javascript "access plus 1 week"
	ExpiresByType application/javascript "access plus 1 week"
	ExpiresByType application/xhtml+xml "access plus 1 week"
	ExpiresByType application/pdf "access plus 1 week"
	ExpiresByType application/x-shockwave-flash "access plus 1 week"
	ExpiresByType image/x-icon "access plus 1 week"
	ExpiresDefault "access plus 1 week"
</IfModule>

<ifModule mod_headers.c>
	<filesMatch ".(css|jpg|jpeg|png|gif|swf|svg|js|ico)$">
		Header set Cache-Control "max-age=2592000, public"
	</filesMatch>

	<filesMatch ".(x?html?|php)$">
		Header set Cache-Control "private, must-revalidate"
	</filesMatch>
</ifModule>


#<Files "Deneme.php">
#  Header set Access-Control-Allow-Origin "https://aselmasturizm.com"
#  Header set Access-Control-Allow-Methods: "GET,POST,OPTIONS,DELETE,PUT"
#  Header set Access-Control-Allow-Headers "Content-Type, Authorization"
#</Files>


# ----------------------------------------------------------------------
# Allow loading of external fonts
# ----------------------------------------------------------------------
#<FilesMatch "\.(ttf|otf|eot|woff|woff2)$">
#<FilesMatch "\.(ttf|woff|woff2)$">
#	<IfModule mod_headers.c>
#		#SetEnvIf Origin "http(s)?://(www\.)?(google.com|staging.google.com|development.google.com|otherdomain.net|dev02.otherdomain.net)$" #AccessControlAllowOrigin=$0
#		#Header add Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin
#		#Header add Access-Control-Allow-Origin: https://www.uygunveucuz.com, https://cdn.uygunveucuz.com
#		Header set Access-Control-Allow-Origin "*"
#	</IfModule>
#</FilesMatch>

#<IfModule mod_headers.c>
#	Header always set Access-Control-Allow-Origin "www.uygunveucuz.com"
#	Header always set Access-Control-Allow-Origin "cdn.uygunveucuz.com"	
#</IfModule>

#	Access-Control-Allow-Origin: https://www.uygunveucuz.com, https://cdn.uygunveucuz.com
##	Access-Control-Allow-Origin: https://cdn.uygunveucuz.com

#Homepage setting
	DirectoryIndex index.php

	ErrorDocument 404 /error.php

	RewriteEngine on
	RewriteBase /

	#RewriteCond %{REQUEST_URI} !(\.css|\.js|\.png|\.jpg|\.gif|robots\.txt)$ [NC]

#redirect http non-www to https://www  
	RewriteCond %{HTTPS} off
	RewriteCond %{HTTP_HOST} ^(www\.)?AsElmasTurizm\.com$
	RewriteRule (.*) https://www.AsElmasTurizm.com/$1 [R=301,L]

#redirect https non-www to www
	RewriteCond %{HTTPS} on
	RewriteCond %{HTTP_HOST} ^AsElmasTurizm\.com$
	RewriteRule (.*) https://www.AsElmasTurizm.com/$1 [R=301,L]

# remove trailing slash
	RewriteRule ^(.*)/$ /$1 [L,R=301]


	RewriteCond %{ENV:REDIRECT_STATUS} ^$
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteRule ^$ index.php [NC,L]
	
	RewriteRule ^index$ index.php [NC,L]
	RewriteRule ^indexEN$ indexEN.php [NC,L]
	RewriteRule ^index_TR$ index_TR.php [NC,L]
	RewriteRule ^index_EN$ index_EN.php [NC,L]
	RewriteRule ^index_AR$ index_AR.php [NC,L]
	
	RewriteRule ^myIndex_TR$ myIndex_TR.php [NC,L]
	RewriteRule ^myIndex_EN$ myIndex_EN.php [NC,L]

	RewriteRule ^myIndex_TR$ myIndex_TR.php [NC,L]
	RewriteRule ^myIndex_EN$ myIndex_EN.php [NC,L]
	RewriteRule ^myIndex_AR$ myIndex_AR.php [NC,L]

	RewriteRule ^pHandling$ pHandling.php [NC,L]
	RewriteRule ^pHandling$ pHandling.php [NC,L]
	
	RewriteRule ^SearchResponse$ SearchResponse.php [NC,L]
	RewriteRule ^fareListRequest$ fareListRequest.php [NC,L]
	RewriteRule ^fareListResponse$ fareListResponse.php [NC,L]

	RewriteRule ^flights$ flights.php [NC,L]

	RewriteRule ^flightSearch$ flightSearch.php [NC,L]
	RewriteRule ^flightSearch$ flightSearch.php [NC,L]
	RewriteRule ^flightSearch2$ flightSearch2.php [NC,L]
	RewriteRule ^flightSearch3$ flightSearch3.php [NC,L]

	RewriteRule ^sResult$ sResult.php [NC,L]
	RewriteRule ^fareList$ fareList.php [NC,L]
	RewriteRule ^fareList2$ fareList2.php [NC,L]

	RewriteRule ^fareList$ fareList.php [NC,L]
	RewriteRule ^fareList2$ fareList2.php [NC,L]

	RewriteRule ^flightsList$ flightsList.php [NC,L]	
	RewriteRule ^flightSelected$ flightSelected.php [NC,L]	
	
	RewriteRule ^HandleMyLogin$ HandleMyLogin.php [NC,L]
	RewriteRule ^HandleMyLogin_New3$ HandleMyLogin_New3.php [NC,L]
	RewriteRule ^myLogout$ myLogout.php [NC,L]

	RewriteRule ^payment/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)$ payment.php?OWorRT=$1&currency=$2&authId=$3&sId=$4&reqPax=$5&flightId1=$6&flightId2=$7 [NC,L]
	RewriteRule ^payment/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)$ payment.php?OWorRT=$1&tPrice=$2&currency=$3&authId=$4&sId=$5&reqPax=$6&flightId1=$7&flightId2=$8 [NC,L]
	
	RewriteRule ^RenewPassword/(.*)/(.*)/(.*)$ RenewPassword.php?EmailToRenew=$1&Code=$2&Lang=$3 [NC,L]

	RewriteRule ^HandlePRenewal/(.*)/(.*)/(.*)/(.*)/(.*)$ HandlePRenewal.php?EmailToRenew=$1&Code=$2&Lang=$3&password1=$4&password2=$5 [NC,L]

	RewriteRule ^EmailConfirm/([a-zA-Z0-9@-_.]+)/([a-zA-Z0-9]+)/([a-zA-Z]+)$ EmailConfirm.php?Email=$1&Code=$2&Lang=$3 [NC,L]

	RewriteRule ^HandleMyLogin/(.*)/(.*)/(.*)$ HandleMyLogin.php?loginEMail=$1&loginPassword=$2&Lang=$3 [NC,L]
	RewriteRule ^HandleMyLogin_New/(.*)/(.*)/(.*)$ HandleMyLogin_New.php?loginEMail=$1&loginPassword=$2&Lang=$3 [NC,L]

	RewriteRule ^myLogout/(.*)/(.*)$ myLogout.php?Lang=$1&phpSID=$2 [NC,L]

	RewriteRule ^DoMembersPreRegistry/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)$ DoMembersPreRegistry.php?eMail=$1&Lang=$2&p1=$3&p2=$4&name=$5&fName=$6&mobile=$7&PreRegisterC=$8 [NC,L]

	RewriteRule ^DoMPR/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)$ DoMPR.php?eMail=$1&Lang=$2&p1=$3&p2=$4&name=$5&fName=$6&mobile=$7&PreRegisterC=$8 [NC,L]

# php -- BEGIN cPanel-generated handler, do not edit
# Bu etki alanı, “PHP” paketini miras alır.
# php -- END cPanel-generated handler, do not edit
RewriteCond %{HTTP_HOST} ^cdn\.uygunveucuz\.com$
RewriteRule ^\(\.\*\)\/?(.*)$ "https\:\/\/cdn\.AsElmasTurizm\.com\/$1" [R=301,L]
