#RewriteOptions inherit
Options +FollowSymLinks -Indexes
# This was added by Rajiv on 27th May to speed up the site
#####################################################
# CONFIGURE media caching
#
#
# ExpiresActive On
# ExpiresDefault A300
# #ExpiresByType text/html A7200
# #ExpiresByType text/javascript A604800
# ExpiresByType application/x-javascript A604800
# #ExpiresByType text/css A604800
# ExpiresByType image/x-icon A31536000
# ExpiresByType image/gif A604800
# ExpiresByType image/jpg A604800
# ExpiresByType image/jpeg A604800
# ExpiresByType image/png A604800
# ExpiresByType text/plain A604800
#
#
#Header append Cache-Control "public, must-revalidate"
#
# new config starts here changed on 24-06-2013
#####################################################
#
# SetHandler php53-fcgi
#
# new addition by rajiv for page speed on 3rd oct 2019
AddOutputFilterByType DEFLATE application/javascript
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/ttf
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/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
#
# SetOutputFilter DEFLATE
#
# END Compress text files
# BEGIN Expire headers
ExpiresActive On
ExpiresDefault "access plus 172800 seconds"
ExpiresByType image/x-icon "access plus 2592000 seconds"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/webp "access plus 1 year"
ExpiresByType image/ttf "access plus 1 year"
ExpiresByType image/woff "access plus 1 year"
ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
ExpiresByType text/css "access plus 2592000 seconds"
ExpiresByType text/javascript "access plus 2592000 seconds"
ExpiresByType application/javascript "access plus 2592000 seconds"
ExpiresByType application/x-javascript "access plus 2592000 seconds"
ExpiresByType text/html "access plus 3600 seconds"
ExpiresByType application/xhtml+xml "access plus 600 seconds"
# END Expire headers
# BEGIN gZip compression
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
# end gZip compression
# BEGIN Cache-Control Headers
# BEGIN Cache-Control Headers
Header set Cache-Control "max-age=604800, public"
#
# Header set Cache-Control "public"
#
#
# Header set Cache-Control "public"
#
#
# Header set Cache-Control "private"
#
Header set Cache-Control "private, must-revalidate"
# END Cache-Control Headers
SetEnvIf Origin "http(s)?://(www\.)?(m.gulfyp.com|kenyayellowpagesonline.com|www.kenyayellowpagesonline.com|mumbaiyp.com|www.mumbaiyp.com|mumbaiyellowpagesonline.com|www.mumbaiyellowpagesonline.com|africayellowpagesonline.com|www.africayellowpagesonline.com|usa-yellowpagesonline.com|www.usa-yellowpagesonline.com|dubaiyellowpagesonline.com|www.dubaiyellowpagesonline.com|uaeyellowpagesonline.com|www.uaeyellowpagesonline.com|sharjahyellowpagesonline.com|www.sharjahyellowpagesonline.com|abudhabiyellowpagesonline.com|www.abudhabiyellowpagesonline.com|saudiyellowpagesonline.com|www.saudiyellowpagesonline.com|kuwaityellowpagesonline.com|www.kuwaityellowpagesonline.com|bahrainyellowpagesonline.com|www.bahrainyellowpagesonline.com|omanyellowpagesonline.com|www.omanyellowpagesonline.com|algeriayponline.com|www.algeriayponline.com|namibiayponline.com|www.namibiayponline.com|egyptyponline.com|www.egyptyponline.com|libyayponline.com|www.libyayponline.com|ethiopiayponline.com|www.ethiopiayponline.com|moroccoyponline.com|www.moroccoyponline.com|chadyponline.com|www.chadyponline.com|maliyponline.com|www.maliyponline.com|nigeriayponline.com|www.nigeriayponline.com|sayponline.com|www.sayponline.com)$" AccessControlAllowOrigin=$0
Header add Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin
# BEGIN Turn ETags Off
FileETag None
# END Turn ETags Off
# new config ends here
# new config on 9th aug 2022 from plexconcil
#IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
#
#order deny,allow
#deny from all
#allow from all
#
#
#order deny,allow
#deny from all
#
#AuthName gulfyp.com
#
# Header set X-XSS-Protection "1; mode=block"
#
#
# RewriteEngine On
# RewriteCond %{REQUEST_METHOD} !^(GET|POST|CONNECT)
# RewriteRule .* - [F]
#
RewriteEngine On
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
#RewriteCond %{REQUEST_METHOD} ^(CONNECT|OPTIONS|DEBUG|DELETE|MOVE|PUT|TRACE|TRACK) [NC]
#RewriteRule .* - [F,L]
#Options -Indexes
# end of new config on 9th aug 2022
#####################################################
RewriteEngine on
#CGIPassAuth on
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTP_HOST} ^vcard\.gulfyp\.com$
RewriteCond %{REQUEST_URI} !^/register/visiting_card_process/\.php
RewriteRule cardlist vcard/cardlist.php?id=$1 [NC,QSA,L]
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTP_HOST} ^vcard\.gulfyp\.com$
RewriteCond %{REQUEST_URI} !^/register/visiting_card_process/\.php
RewriteRule ^(.*)/product-details vcard/product-details.php?id=$1 [NC,QSA,L]
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTP_HOST} ^vcard\.gulfyp\.com$
RewriteCond %{REQUEST_URI} !^/register/visiting_card_process/\.php
RewriteRule ^(.*)/product vcard/product.php?vcardurl=$1 [NC,QSA,L]
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTP_HOST} ^vcard\.gulfyp\.com$
RewriteCond %{REQUEST_URI} !^/catalog/\.pdf
RewriteCond %{REQUEST_URI} !^/register/visiting_card_process/\.php
RewriteRule ^(.*)/download\.vcf vcard/vcard.php?vcardurl=$1&download=1 [NC,QSA,L]
#RewriteRule ^(.*)/download\.vcf vcard/vcard.php?vcardurl=$1&download=1 [R,L]
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTP_HOST} ^vcard\.gulfyp\.com$
RewriteCond %{REQUEST_URI} !^/download\.vcf
RewriteCond %{REQUEST_URI} !^/catalog/\.pdf
RewriteCond %{REQUEST_URI} !^/register/visiting_card_process/\.php
RewriteRule ^(.*)/share vcard/index.php?vcardurl=$1&type=share [NC,QSA,L]
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTP_HOST} ^vcard\.gulfyp\.com$
RewriteCond %{REQUEST_URI} !^/download\.vcf
RewriteCond %{REQUEST_URI} !^/register/visiting_card_process/\.php
RewriteRule ^(.*)/catalog\.pdf vcard/index.php?vcardurl=$1&type=pdf [NC,QSA,L]
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTP_HOST} ^vcard\.gulfyp\.com$
RewriteCond %{REQUEST_URI} !^/download/\.vcf
RewriteCond %{REQUEST_URI} !^/vcard\.php
RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_URI} !^/catalog/\.pdf
RewriteCond %{REQUEST_URI} !^/register/visiting_card_process/\.php
RewriteRule ^(.*)$ vcard/index.php?vcardurl=$1 [NC,QSA,L]
RewriteCond %{HTTP_HOST} ^exhibitions\.([^.]+)\.gulfyp\.com
RewriteRule ^exhibitions/(.*) /exhibitions/$1 [L]
# my.example.com defined subdomain
#RewriteCond %{HTTP_HOST} !^my\.example\.com$ [NC]
#RewriteRule ^.*$ - [S=3]
#RewriteRule ^$ /mydirectory/index.php [L]
#RewriteRule ^category/([^/]+)/?$ /mydirectory/index.php?category=$1 [L]
#RewriteRule ^submit/?$ /mydirectory/process.php [L]
#rewrite for sub domains and web showrooms
## If www+subdomain domain requested, externally redirect to subdomain without "www"
RewriteCond %{HTTP_HOST} ^www\.([^.]+)\.gulfyp\.com
RewriteCond %{HTTP_HOST} !^vcard\.gulfyp\.com$
RewriteRule (.*) https://%1.gulfyp.com/$1 [L]
##
## If subdomain+www domain requested, externally redirect to subdomain without "www"
RewriteCond %{HTTP_HOST} ^([^.]+)\.www\.gulfyp\.com
RewriteCond %{HTTP_HOST} !^vcard\.gulfyp\.com$
RewriteRule (.*) https://%1.gulfyp.com/$1 [L]
## If subdomain requested, rewrite subdomain and html page requests to index.php with query string
RewriteCond %{HTTP_HOST} !^www\.gulfyp\.com
RewriteCond %{HTTP_HOST} !^deals\.gulfyp\.com
RewriteCond %{HTTP_HOST} !^gulfyp\.com
RewriteCond %{HTTP_HOST} ^([^.]+)\.gulfyp\.com
RewriteRule ^index.html /b2b/webstore/index.php?webstorename=%1 [L]
RewriteCond %{HTTP_HOST} !^www\.gulfyp\.com
RewriteCond %{HTTP_HOST} !^deals\.gulfyp\.com
RewriteCond %{HTTP_HOST} ^([^.]+)\.gulfyp\.com
RewriteRule ^products.html /b2b/webstore/products.php?webstorename=%1 [L]
RewriteCond %{HTTP_HOST} !^www\.gulfyp\.com
RewriteCond %{HTTP_HOST} !^deals\.gulfyp\.com
RewriteCond %{HTTP_HOST} ^([^.]+)\.gulfyp\.com
RewriteRule ^products/([0-9]+)/(.*)\.htm /b2b/webstore/productdetails.php?webstorename=%1&companyproductid=$1 [L]
RewriteCond %{HTTP_HOST} !^www\.gulfyp\.com
RewriteCond %{HTTP_HOST} !^deals\.gulfyp\.com
RewriteCond %{HTTP_HOST} ^([^.]+)\.gulfyp\.com
RewriteRule ^video_listing.html /b2b/webstore/productvids.php?webstorename=%1 [L]
RewriteCond %{HTTP_HOST} !^www\.gulfyp\.com
RewriteCond %{HTTP_HOST} !^deals\.gulfyp\.com
RewriteCond %{HTTP_HOST} ^([^.]+)\.gulfyp\.com
RewriteRule ^video/[0-9]/(.*html) /b2b/webstore/productviddetails.php?webstorename=%1&companyproductid=$1 [L]
RewriteCond %{HTTP_HOST} !^www\.gulfyp\.com
RewriteCond %{HTTP_HOST} !^deals\.gulfyp\.com
RewriteCond %{HTTP_HOST} ^([^.]+)\.gulfyp\.com
RewriteRule ^selloffers.html /b2b/webstore/selloffers.php?webstorename=%1 [L]
RewriteCond %{HTTP_HOST} !^www\.gulfyp\.com
RewriteCond %{HTTP_HOST} !^deals\.gulfyp\.com
RewriteCond %{HTTP_HOST} ^([^.]+)\.gulfyp\.com
RewriteRule ^selloffer/([0-9]+)/(.*)\.html /b2b/webstore/sellofferdetails.php?webstorename=%1&offerid=$1 [L]
RewriteCond %{HTTP_HOST} !^www\.gulfyp\.com
RewriteCond %{HTTP_HOST} !^deals\.gulfyp\.com
RewriteCond %{HTTP_HOST} ^([^.]+)\.gulfyp\.com
RewriteRule ^profile.html /b2b/webstore/companyprofile.php?webstorename=%1 [L]
RewriteCond %{HTTP_HOST} !^www\.gulfyp\.com
RewriteCond %{HTTP_HOST} !^deals\.gulfyp\.com
RewriteCond %{HTTP_HOST} ^([^.]+)\.gulfyp\.com
RewriteRule ^enquiry.html /b2b/webstore/enquiry.php?webstorename=%1 [L]
RewriteCond %{HTTP_HOST} !^www\.gulfyp\.com
RewriteCond %{HTTP_HOST} !^deals\.gulfyp\.com
RewriteCond %{HTTP_HOST} ^([^.]+)\.gulfyp\.com
RewriteRule ^sendenquiry.html /b2b/webstore/sendenquiry.php?webstorename=%1 [L]
RewriteCond %{HTTP_HOST} !^www\.gulfyp\.com
RewriteCond %{HTTP_HOST} !^deals\.gulfyp\.com
RewriteCond %{HTTP_HOST} ^([^.]+)\.gulfyp\.com
RewriteRule ^verificationimage.html /b2b/webstore/verificationimage.php?webstorename=%1 [L]
RewriteCond %{HTTP_HOST} !^www\.gulfyp\.com
RewriteCond %{HTTP_HOST} !^deals\.gulfyp\.com
RewriteCond %{HTTP_HOST} ^([^.]+)\.gulfyp\.com
RewriteRule ^contactus.html /b2b/webstore/contactus.php?webstorename=%1 [L]
RewriteCond %{HTTP_HOST} !^www\.gulfyp\.com
RewriteCond %{HTTP_HOST} !^deals\.gulfyp\.com
RewriteCond %{HTTP_HOST} ^([^.]+)\.gulfyp\.com
RewriteRule ^certificates.html /b2b/webstore/certificates.php?webstorename=%1 [L]
RewriteCond %{HTTP_HOST} !^www\.gulfyp\.com
RewriteCond %{HTTP_HOST} !^deals\.gulfyp\.com
RewriteCond %{HTTP_HOST} ^([^.]+)\.gulfyp\.com
RewriteRule ^templates/(.*)/(.*\.css) /b2b/webstore/templates/$1/$2 [R]
RewriteCond %{HTTP_HOST} !^www\.gulfyp\.com
RewriteCond %{HTTP_HOST} !^deals\.gulfyp\.com
RewriteCond %{HTTP_HOST} ^([^.]+)\.gulfyp\.com
RewriteRule ^templates/(.*)/images/(.*) /b2b/webstore/templates/$1/images/$2 [L]
RewriteCond %{HTTP_HOST} !^www\.gulfyp\.com
RewriteCond %{HTTP_HOST} !^deals\.gulfyp\.com
RewriteCond %{HTTP_HOST} ^([^.]+)\.gulfyp\.com
RewriteRule ^templates/(.*)/(.*) /b2b/webstore/templates/$1/$2 [L]
# end of rewrite for sub domains and web showrooms
# rewrite for webstore without sub domain
#/userdata/companylogo/products/
RewriteRule ^co-(.*)/([0-9]+)/index.html /b2b/webstore/index.php?companyid=$2 [L]
RewriteRule ^co-(.*)/([0-9]+)/products.html /b2b/webstore/products.php?companyid=$2 [L]
RewriteRule ^co-(.*)/([0-9]+)/products/([0-9]+)/(.*)\.htm /b2b/webstore/productdetails.php?companyid=$2&companyproductid=$3 [L]
RewriteRule ^co-(.*)/([0-9]+)/video_listing.html /b2b/webstore/productvids.php?companyid=$2 [L]
RewriteRule ^co-(.*)/([0-9]+)/video/[0-9]/(.*)\.html /b2b/webstore/productviddetails.php?companyid=$2&companyproductid=$3 [L]
RewriteRule ^co-(.*)/([0-9]+)/profile.html /b2b/webstore/companyprofile.php?companyid=$2 [L]
RewriteRule ^co-(.*)/([0-9]+)/enquiry.html /b2b/webstore/enquiry.php?companyid=$2 [L]
RewriteRule ^co-(.*)/([0-9]+)/sendenquiry.html /b2b/webstore/sendenquiry.php?companyid=$2 [L]
RewriteRule ^co-(.*)/([0-9]+)/verificationimage.html /b2b/webstore/verificationimage.php?companyid=$2 [L]
RewriteRule ^co-(.*)/([0-9]+)/contactus.html /b2b/webstore/contactus.php?companyid=$2 [L]
RewriteRule ^co-(.*)/([0-9]+)/selloffers.html /b2b/webstore/selloffers.php?companyid=$2 [L]
RewriteRule ^co-(.*)/([0-9]+)/selloffer/([0-9]+)/(.*)\.html /b2b/webstore/sellofferdetails.php?companyid=$2&offerid=$3 [L]
RewriteRule ^co-(.*)/([0-9]+)/discountoffers.html /b2b/webstore/discountoffers.php?companyid=$2 [L]
RewriteRule ^co-(.*)/([0-9]+)/discountoffer/[0-9]/(.*)\.html /b2b/webstore/discountofferdetails.php?companyid=$2&discountofferid=$3 [L]
RewriteRule ^co-(.*)/([0-9]+)/events.html /b2b/webstore/events.php?companyid=$2 [L]
RewriteRule ^co-(.*)/([0-9]+)/certificates.html /b2b/webstore/certificates.php?companyid=$2 [L]
RewriteRule ^co-(.*)/([0-9]+)/video.html /b2b/webstore/companyvideo.php?companyid=$2 [L]
RewriteRule ^co-(.*)/([0-9]+)/branches.html /b2b/webstore/companybranch.php?companyid=$2 [L]
RewriteRule ^co-(.*)/([0-9]+)/event/[0-9]/(.*)\.html /b2b/webstore/eventdetails.php?companyid=$2&eventid=$3 [L]
#copy below 4 lines to all htaccess files of YP sites
RewriteRule ^co-(.*)/([0-9]+)/awards.html /b2b/webstore/companyawards.php?companyid=$2 [L]
RewriteRule ^co-(.*)/([0-9]+)/exhibitions.html /b2b/webstore/companyexhibition.php?companyid=$2 [L]
RewriteRule ^co-(.*)/([0-9]+)/media.html /b2b/webstore/companymedia.php?companyid=$2 [L]
RewriteRule ^co-(.*)/([0-9]+)/brochure.html /b2b/webstore/companycatalogue.php?companyid=$2 [L]
# end of copy
RewriteRule ^co-(.*)/([0-9]+)/ /b2b/webstore/index.php?companyid=$2 [L]
RewriteRule ^co-(.*)/(.*)/vcard /vcard/show.php?vcardurl=$2 [L]
# end of rewrite for webstore without sub domain
RewriteRule ^index.htm index.php [L]
RewriteRule ^products.htm productlist.php [L]
RewriteRule ^dealership-how-it-works.htm dealership-how-it-works.php [L]
RewriteRule ^companies.htm companylist.php [L]
#RewriteRule ^addlisting.htm addlisting.php [L]
RewriteRule ^addlisting.htm register/ [L]
RewriteRule ^addlisting.php register/ [L]
RewriteRule ^editlisting.htm register/addlisting.php [L]
RewriteRule ^elite.htm register/ [L]
RewriteRule ^elite-([0-9]+).htm register/ [L]
RewriteRule ^contactus.htm contactus.php [L]
RewriteRule ^advertise.htm advertise.php [L]
RewriteRule ^aboutuae.htm aboutuae.php [L]
RewriteRule ^terms.htm terms.php [L]
RewriteRule ^internationalcompanies.htm international-elites.php [L]
RewriteRule ^advertisement_options_form.htm advertisement_options_form.php [L]
RewriteRule ^b2b/admin/editcompany.htm b2b/admin/editcompany.php [L]
RewriteRule ^b2b/admin/changepassword.htm b2b/admin/changepassword.php [L]
RewriteRule ^login.htm login.php [L]
RewriteRule ^logout.htm logout.php [L]
RewriteRule ^forgetpassword.htm forgotpassword.php [L]
RewriteRule ^comprods/([0-9]+)/(.*htm) companyproductdetails.php?companyproductid=$1 [L]
RewriteRule ^comprodvids/([0-9]+)/(.*htm) companyproductvids.php?companyproductid=$1 [L]
# rewrite rules for help folder
RewriteRule ^help/ad_with_us.html help/ad_with_us.php [L]
RewriteRule ^help/company_info.html help/company_info.php [L]
RewriteRule ^help/contact_suppliers.html help/contact_suppliers.php [L]
RewriteRule ^help/disp_products.html help/disp_products.php [L]
RewriteRule ^help/post_buying_leads.html help/post_buying_leads.php [L]
RewriteRule ^help/search_prod_comp.html help/search_prod_comp.php [L]
RewriteRule ^help/whatis_elite.html help/whatis_elite.php [L]
# end of rewrite rules for help
RewriteRule ^privacypolicy.htm privacypolicy.php [L]
#rewrite rule for openx Banners
RewriteRule ^ads/(.*)-ads.gif ads/www/delivery/avw.php?zoneid=$1&target=_blank&cb=INSERT_RANDOM_NUMBER_HERE [L]
#rewrite rule for OpenX Banners end
# remove the comment below for normal use on DYP
#RewriteRule ^css/.*$ - [PT]
# this is for testing compression of javascript and css
#RewriteRule ^javascript/(.*\.js) /combine.php?type=javascript&files=$1&encoding=gzip
#RewriteRule ^css/(.*\.css) /combine.php?type=css&files=$1&encoding=gzip
#RewriteRule ^autosuggest/(.*\.js) /combine.php?type=jsautosuggest&files=$1&encoding=gzip
#RewriteRule ^autosuggest/(.*\.css) /combine.php?type=cssautosuggest&files=$1&encoding=gzip
#RewriteRule ^b2b/admin/(.*\.css) /combine.php?type=cssadmin&files=$1&encoding=gzip
#RewriteRule ^b2b/newadmin/(.*\.css) /combine.php?type=cssadminnew&files=$1&encoding=gzip
RewriteRule ^javascript/(.*\.js) /common_code/javascript/$1
RewriteRule ^css/(.*\.css) /common_code/css/$1
RewriteRule ^autosuggest/(.*\.js) /common_code/autosuggest/$1
RewriteRule ^autosuggest/(.*\.css) /common_code/autosuggest/$1
RewriteRule ^b2b/admin/(.*\.css) /common_code/b2b/admin/$1
RewriteRule ^b2b/newadmin/(.*\.css) /common_code/newadmin/$1
# this is original dubai htaccess code
#RewriteRule ^javascript/(.*\.js) /combine.php?type=javascript&files=$1
#RewriteRule ^css/(.*\.css) /combine.php?type=css&files=$1&encoding=gzip
#RewriteRule ^autosuggest/(.*\.js) /combine.php?type=jsautosuggest&files=$1
#RewriteRule ^autosuggest/(.*\.css) /combine.php?type=cssautosuggest&files=$1&encoding=gzip
#RewriteRule ^b2b/admin/(.*\.css) /combine.php?type=cssadmin&files=$1&encoding=gzip
#
# RewriteCond %{HTTP_USER_AGENT} ..*Safari.*. [OR]
# RewriteCond %{HTTP:Accept-Encoding} !gzip
# RewriteRule (.*).combine-cache.gzip$ $1.combine-cache [L]
# #AddType "text/plain" .gzip
# AddEncoding gzip .gzip
#
# end of testing
#for indian companies listed in site
RewriteCond %{REQUEST_URI} !^/directory/search\.php
RewriteRule directory-india/(.*)/(.*)/(.*)\.htm$ directory/search.php?q=$3&catid=$1&s=$2&countrytosearch=India [L]
RewriteCond %{REQUEST_URI} !^/directory/search\.php
RewriteRule directory-india/(.*)/(.*)\.htm$ directory/search.php?q=$2&catid=$1&countrytosearch=India [L]
RewriteCond %{REQUEST_URI} !^/directory/search\.php
RewriteRule directory-india/(.*)\.htm$ directory/search.php?q=$1&countrytosearch=India [L]
RewriteCond %{REQUEST_URI} !^/directory/search\.php
RewriteRule directory-india/(.*)/(.*)/ directory/search.php?catid=$1&s=$2&countrytosearch=India [L]
RewriteCond %{REQUEST_URI} !^/directory/search\.php
RewriteRule directory-india/(.*)/ directory/search.php?catid=$1&countrytosearch=India [L]
RewriteCond %{REQUEST_URI} !^/directory/search\.php
RewriteRule directory-india/(.*) directory/search.php?q=$1&countrytosearch=India [L]
# end of india companies listed in site
#for chinese companies listed in site
RewriteCond %{REQUEST_URI} !^/directory/search\.php
RewriteRule directory-china/(.*)/(.*)/(.*)\.htm$ directory/search.php?q=$3&catid=$1&s=$2&countrytosearch=china [L]
RewriteCond %{REQUEST_URI} !^/directory/search\.php
RewriteRule directory-china/(.*)/(.*)\.htm$ directory/search.php?q=$2&catid=$1&countrytosearch=china [L]
RewriteCond %{REQUEST_URI} !^/directory/search\.php
RewriteRule directory-china/(.*)\.htm$ directory/search.php?q=$1&countrytosearch=china [L]
RewriteCond %{REQUEST_URI} !^/directory/search\.php
RewriteRule directory-china/(.*)/(.*)/ directory/search.php?catid=$1&s=$2&countrytosearch=china [L]
RewriteCond %{REQUEST_URI} !^/directory/search\.php
RewriteRule directory-china/(.*)/ directory/search.php?catid=$1&countrytosearch=china [L]
RewriteCond %{REQUEST_URI} !^/directory/search\.php
RewriteRule directory-china/(.*) directory/search.php?q=$1&countrytosearch=china [L]
# end of chinese companies listed in site
#RewriteCond %{REQUEST_URI} !^/directory/countrysearch\.php
RewriteCond %{REQUEST_URI} !^/directory/search\.php
RewriteRule directory/(.*)/(.*)/(.*)\.htm$ directory/search.php?q=$3&catid=$1&s=$2 [L]
#RewriteCond %{REQUEST_URI} !^/directory/countrysearch\.php
RewriteCond %{REQUEST_URI} !^/directory/search\.php
RewriteRule directory/(.*)/(.*)\.htm$ directory/search.php?q=$2&catid=$1 [L]
#RewriteCond %{REQUEST_URI} !^/directory/countrysearch\.php
RewriteCond %{REQUEST_URI} !^/directory/search\.php
RewriteRule directory/(.*)\.htm$ directory/search.php?q=$1 [L]
#RewriteCond %{REQUEST_URI} !^/directory/countrysearch\.php
RewriteCond %{REQUEST_URI} !^/directory/search\.php
RewriteRule directory/(.*)/(.*)/ directory/search.php?catid=$1&s=$2 [L]
#RewriteCond %{REQUEST_URI} !^/directory/countrysearch\.php
RewriteCond %{REQUEST_URI} !^/directory/search\.php
RewriteRule directory/(.*)/ directory/search.php?catid=$1 [L]
#RewriteCond %{REQUEST_URI} !^/directory/countrysearch\.php
RewriteCond %{REQUEST_URI} !^/directory/search\.php
RewriteRule directory/ productlist.php [L]
#RewriteCond %{REQUEST_URI} !^/directory/countrysearch\.php
RewriteCond %{REQUEST_URI} !^/directory/search\.php
RewriteRule directory/(.*) directory/search.php?q=$1 [L]
RewriteCond %{REQUEST_URI} !^/directory/search\.php
RewriteRule companies/(.*)-([0-9]+)\.htm$ companydetails.php?memberid=$2 [L]
RewriteCond %{REQUEST_URI} !^/directory/search\.php
RewriteRule companies/(.*)\.htm$ companydetails.php?memberid=$1 [L]
RewriteCond %{REQUEST_URI} b2b/admin/(.*)/(.*)/showoffers.htm
RewriteRule b2b/admin/(.*)/(.*)/showoffers.htm b2b/admin/offerdetails.php?offerid=$1&pages=$2 [L]
RewriteCond %{REQUEST_URI} b2b/admin/(.*)/old/(.*)/showoffers.htm
RewriteRule b2b/admin/(.*)/old/(.*)/showoffers.htm b2b/admin/offerdetails.php?offerid=$1&pages=$2&old=$3 [L]
# changed by rajiv in case there is no paging on 16th july 2021
RewriteCond %{REQUEST_URI} b2b/admin/(.*)/showoffers.htm
RewriteRule b2b/admin/(.*)/showoffers.htm b2b/admin/offerdetails.php?offerid=$1 [L]
RewriteCond %{REQUEST_URI} b2b/admin/sendreply.htm
RewriteRule b2b/admin/sendreply.htm b2b/admin/sendreply.php [L]
RewriteCond %{REQUEST_URI} b2b/(.*)/showoffers.htm
RewriteRule b2b/(.*)/showoffers.htm b2b/offerdetails.php?offerid=$1 [L]
RewriteCond %{REQUEST_URI} b2b/buy-offers.htm
RewriteRule b2b/buy-offers.htm b2b/buyoffersindex.php [L]
RewriteCond %{REQUEST_URI} b2b/buy-offers-alpha.htm
RewriteRule b2b/buy-offers-alpha.htm b2b/buyoffersalphaindex.php [L]
RewriteCond %{REQUEST_URI} b2b/sell-offers.htm
RewriteRule b2b/sell-offers.htm b2b/selloffersindex.php [L]
RewriteCond %{REQUEST_URI} b2b/sell-offers-alpha.htm
RewriteRule b2b/sell-offers-alpha.htm b2b/selloffersalphaindex.php [L]
RewriteCond %{REQUEST_URI} b2b/sendreply.htm
RewriteRule b2b/sendreply.htm b2b/sendreply.php [L]
RewriteCond %{REQUEST_URI} b2b/admin/showreplies.htm
RewriteRule b2b/admin/showreplies.htm b2b/admin/replyindex.php [L]
RewriteCond %{REQUEST_URI} b2b/admin/addproduct.htm
RewriteRule b2b/admin/addproduct.htm b2b/admin/addproduct.php [L]
RewriteCond %{REQUEST_URI} b2b/admin/([0-9]+)/showproductdetails.htm
RewriteRule b2b/admin/([0-9]+)/showproductdetails.htm b2b/admin/addproduct.php?companyprodid=$1 [L]
RewriteCond %{REQUEST_URI} b2b/admin/([0-9]+)/showsellofferdetails.htm
RewriteRule b2b/admin/([0-9]+)/showsellofferdetails.htm b2b/admin/addselloffer.php?offerid=$1 [L]
RewriteCond %{REQUEST_URI} b2b/admin/addselloffer.htm
RewriteRule b2b/admin/addselloffer.htm b2b/admin/addselloffer.php [L]
RewriteRule b2b/admin/([0-9]+)/showreplies.htm b2b/admin/replydetails.php?OfferReplyID=$1 [L]
RewriteCond %{REQUEST_URI} b2b/buy-offers-([0-9]+)/(.*).htm
RewriteRule b2b/buy-offers-products/(.*).htm b2b/buyoffersalphaindex.php?productname=$1 [L]
RewriteCond %{REQUEST_URI} b2b/buy-offers-([0-9]+)/(.*).htm
RewriteRule b2b/buy-offers-([0-9]+)/(.*).htm b2b/buyoffersindex.php?productid=$1&productname=$2 [L]
RewriteCond %{REQUEST_URI} b2b/buy-offers/(.*).htm
RewriteRule b2b/buy-offers/(.*).htm b2b/buyoffersindex.php?productname=$1 [L]
RewriteCond %{REQUEST_URI} b2b/sell-offers-([0-9]+)/(.*).htm
RewriteRule b2b/sell-offers-products/(.*).htm b2b/selloffersalphaindex.php?productname=$1 [L]
RewriteCond %{REQUEST_URI} b2b/sell-offers-([0-9]+)/(.*).htm
RewriteRule b2b/sell-offers-([0-9]+)/(.*).htm b2b/selloffersindex.php?productid=$1&productname=$2 [L]
RewriteCond %{REQUEST_URI} b2b/sell-offers/(.*).htm
RewriteRule b2b/sell-offers/(.*).htm b2b/selloffersindex.php?productname=$1 [L]
RewriteCond %{REQUEST_URI} b2b/(.*)-(.*)-line.gif
RewriteRule b2b/(.*)-(.*)-line.gif b2b/track.php?offerid=$1&emailtocompanyid=$2 [L]
RewriteCond %{REQUEST_URI} b2b/(.*)-(.*)-line1.gif
RewriteRule b2b/(.*)-(.*)-line1.gif b2b/track.php?travelofferid=$1&emailtocompanyid=$2 [L]
RewriteCond %{REQUEST_URI} dealeroffer/(.*)-(.*)-line.gif
RewriteRule b2b/(.*)-(.*)-line.gif b2b/trade-partnerships/track-dealeroffer.php?companyid=$1&dealersofferid=$2 [L]
RewriteCond %{REQUEST_URI} register/([0-9]+)/success.htm
RewriteRule register/([0-9]+)/success.htm register/paymentsuccess.php?memberid=$1 [L]
RewriteCond %{REQUEST_URI} register/([0-9]+)-(.*)/success.htm
RewriteRule register/([0-9]+)-(.*)/success.htm register/paymentsuccess.php?memberid=$1 [L]
RewriteCond %{REQUEST_URI} register/([0-9]+)-(.*)/enqsuccess.htm
RewriteRule register/([0-9]+)-([0-9]+)/enqsuccess.htm register/paymentsuccess-enq.php?memberid=$1 [L]
RewriteCond %{REQUEST_URI} !^/offersadmin.php
RewriteRule ^offersadmin/([0-9]+)/accept.htm /b2b/offersadmin.php?offeraccepted=1&offerid=$1 [L]
RewriteRule ^offersadmin/([0-9]+)/reject.htm /b2b/offersadmin.php?offeraccepted=0&offerid=$1 [L]
RewriteCond %{REQUEST_URI} !^/traveloffersadmin.php
RewriteRule ^traveloffersadmin/([0-9]+)/accept.htm /b2b/traveloffersadmin.php?offeraccepted=1&offerid=$1 [L]
RewriteRule ^traveloffersadmin/([0-9]+)/reject.htm /b2b/traveloffersadmin.php?offeraccepted=0&offerid=$1 [L]
#for api
RewriteRule ^api/productdetails/ /api_creation/api_json/getproductdetails.php [L]
RewriteRule ^api/company/ /api_creation/api_json/getcompanyprofile.php [L]
RewriteRule ^api/products/ /api_creation/api_json/getproductlist.php [L]
RewriteRule ^api/similarproducts/ /api_creation/api_json/getsimilarproductlist.php [L]
RewriteRule ^api/otherproducts/ /api_creation/api_json/getotherproductlist.php [L]
RewriteRule ^api/brochure/ /api_creation/api_json/getbrochurelist.php [L]
RewriteRule ^api/certificate/ /api_creation/api_json/getcertificateslist.php [L]
RewriteRule ^api/awards/ /api_creation/api_json/getawardslist.php [L]
RewriteRule ^api/management/ /api_creation/api_json/getmanagementlist.php [L]
RewriteRule ^api/videogallery/ /api_creation/api_json/getvideogallerylist.php [L]
RewriteRule ^api/inbox/ /api_creation/api_json/getinboxdetails.php [L]
RewriteRule ^api/offerdetails/ /api_creation/api_json/getofferdetails.php [L]
RewriteRule ^api/siteaboutinfo/ /api_creation/api_json/get_siteaboutusinfo.php [L]
RewriteRule ^api/sitecontactinfo/ /api_creation/api_json/get_sitecontactusinfo.php [L]
RewriteRule ^api/privacypolicy/ /api_creation/api_json/get_privacypolicyinfo.php [L]
RewriteRule ^api/refundpolicy/ /api_creation/api_json/get_refundpolicyinfo.php [L]
RewriteRule ^api/method_of_payment/ /api_creation/api_json/getmethod_of_paymentinfo.php [L]
RewriteRule ^api/elitepackagespage/ /api_creation/api_json/get_allpackagesinfo.php [L]
RewriteRule ^api/sourcefromindiapage/ /api_creation/api_json/get_sourcing-from-india-page.php [L]
RewriteRule ^api/alphabetwisecompanypage/ /api_creation/api_json/get_alphabetwisecompanylistpage.php [L]
RewriteRule ^api/allproductscategorypage/ /api_creation/api_json/get_pageproductinfo.php [L]
RewriteRule ^api/advertisepage/ /api_creation/api_json/get_siteadvertisepageinfo.php [L]
RewriteRule ^api/productlist/ /api_creation/api_json/productlist.php [L]
RewriteRule ^api/grouplist/ /api_creation/api_json/grouplist.php [L]
RewriteRule ^api/getcompanyID/ /api_creation/api_json/getcompanyID.php [L]
RewriteRule ^api/get_Access_token/ /api_creation/api_json/get_Access_token.php [L]
RewriteRule ^api/get_Access_token_dust/ /api_creation/api_json/get_Access_token_fordust.php [L]
# for campaigns
RewriteCond %{REQUEST_URI} !^/campaigns/alluaecampaign.php
RewriteRule ^campaigns/alluaecampaign.htm /campaigns/alluaecampaign.php [L]
RewriteCond %{REQUEST_URI} !^/campaigns/elitecampaign.php
RewriteRule ^campaigns/elitecampaign.htm /campaigns/elitecampaign.php [L]
#
# for exhibitionsRewriteRule ^exhibitions/index.htm /exhibitions/index.php [L]
RewriteRule ^exhibitions/contactus.htm /exhibitions/contactus.php [L]
RewriteRule ^exhibitions/advertise.htm /exhibitions/advertise.php [L]
RewriteRule ^exhibitions/addevent.htm /exhibitions/addevents.php [L]
RewriteRule ^exhibitions/in-(.*)\.htm /exhibitions/index.php?monthwise=$1 [L]
RewriteRule ^exhibitions/cat-(.*)\.htm /exhibitions/index.php?category=$1 [L]
RewriteRule ^exhibitions/(.*)-(.*)\.htm /exhibitions/eventdetails.php?eventid=$2 [L]
# end of exhibitions
# deals sub domain #
RewriteCond %{HTTP_HOST} ^deals\.gulfyp\.com$
RewriteRule ^past-deals.htm /deals/index.php?dealtype=past-deals [L]
RewriteCond %{HTTP_HOST} ^deals\.gulfyp\.com$
RewriteRule ^dealscategory/(.*)-([0-9]+).htm /deals/index.php?dealscategoryid=$2 [L]
RewriteCond %{HTTP_HOST} ^deals\.gulfyp\.com$
RewriteRule ^$ /deals/ [L]
RewriteCond %{HTTP_HOST} ^deals\.gulfyp\.com$
RewriteRule ^(.*).htm /deals/$1.php [L]
#RewriteRule ^([^/]+)/$ /index.php?file=home&sub1=$1 [NC]
#RewriteRule ^([^/]+).html /index.php?file=$1 [NC]
#RewriteRule ^([^/]+)/([^/]+).html /index.php?file=$1&sub1=$2 [NC]
#RewriteRule ^([^/]+)/([^/]+)/([^/]+).html /index.php?file=$1&sub1=$2&sub2=$3 [NC]
#RewriteRule ^([^/]+)/category/([^/]+).html /index.php?file=$1&sub1=category [NC]
#RewriteRule ^([^/]+)/past/([^/]+).html /index.php?file=$1&sub1=past [NC]
RewriteRule ^coupons/([0-9]+)-coupon.gif /YP_Deals/create_coupon.php?couponid=$1 [L]
RewriteCond %{REQUEST_URI} (.*)-line1.gif
RewriteRule (.*)-line1.gif track.php?emailtocompanyid=$1 [L]
# new addition in htaccess for all sites
#URL for market page
# add urls for buyofferdetails
RewriteCond %{REQUEST_URI} !^b2b/offerdetails\.php
RewriteRule (.*)-market/buy/(.*)-([0-9]+).htm b2b/offerdetails.php?offerid=$3&groupnameurl=$1 [L]
RewriteCond %{REQUEST_URI} (.*)-market/buy/(.*)-prod\.htm
RewriteRule (.*)-market/buy/(.*)-prod\.htm b2b/buyoffersalphaindex.php?productname=$2&groupnameurl=$1 [L]
RewriteCond %{REQUEST_URI} !^b2b/buyofferindex\.php
RewriteRule (.*)-market/buy/ b2b/buyoffersindex.php?groupnameurl=$1&groupnameurl=$1 [L]
# end of buy offer urls
# add urls for sellofferdetails
RewriteCond %{REQUEST_URI} !^b2b/sellofferdetails\.php
RewriteRule (.*)-market/sell/(.*)-([0-9]+).htm b2b/offerdetails.php?groupnameurl=$1&offerid=$3 [L]
RewriteCond %{REQUEST_URI} (.*)-market/sell/(.*)-prod\.htm
RewriteRule (.*)-market/sell/(.*)-prod\.htm b2b/selloffersalphaindex.php?groupnameurl=$1&productname=$2 [L]
RewriteCond %{REQUEST_URI} !^b2b/selloffersindex\.php
RewriteRule (.*)-market/sell/ b2b/selloffersindex.php?groupnameurl=$1 [L]
# end of urls for sell offers
# urls for featured / elite products
RewriteCond %{REQUEST_URI} !^b2b/eliteproductsindex\.php
RewriteRule (.*)-market/featured/(.*)-([0-9]+).htm b2b/eliteproductsindex.php?groupnameurl=$1&productid=$3 [L]
RewriteCond %{REQUEST_URI} (.*)-market/featured/(.*)-prod\.htm
RewriteRule (.*)-market/featured/(.*)-prod\.htm b2b/eliteproductsindex.php?groupnameurl=$1&productname=$2 [L]
RewriteCond %{REQUEST_URI} !^b2b/eliteproductsindex\.php
RewriteRule (.*)-market/featured/ b2b/eliteproductsindex.php?groupnameurl=$1 [L]
RewriteCond %{REQUEST_URI} !^/directory/search\.php
RewriteRule (.*)-market/products/(.*)-([0-9]+).htm companyproductdetails.php?groupnameurl=$1&companyproductid=$3 [L]
RewriteCond %{REQUEST_URI} !^/directory/search\.php
RewriteRule (.*)-market/products/ b2b/eliteproductsindex.php?groupnameurl=$1 [L]
RewriteRule sourcing-from-india.htm /sourcing.php?sourcefromcountryid=19&sourcefromcountryname=india [L]
RewriteRule stainless-steel-pipes-tubes.htm /stainless-steel-pipes-tubes.php [L]
# search options
# user coming from left side search
RewriteCond %{HTTP_HOST} !^acrentinuae\.dubaiyellowpagesonline\.com
RewriteCond %{REQUEST_URI} !^/directory/search\.php
RewriteCond %{REQUEST_URI} !^/mail_temps
RewriteCond %{REQUEST_URI} !^/admin
RewriteCond %{REQUEST_URI} !^/salesadmin
RewriteCond %{REQUEST_URI} !^templates
RewriteCond %{REQUEST_URI} !^common_code
RewriteCond %{REQUEST_URI} !^/product/
RewriteRule (.*)/(.*)/(.*)\.htm directory/search.php?groupnameurl=$1&q=$3&s=$2 [L]
RewriteCond %{HTTP_HOST} !^acrentinuae\.dubaiyellowpagesonline\.com
RewriteCond %{REQUEST_URI} !^/directory/search\.php
RewriteCond %{REQUEST_URI} !^/mail_temps
RewriteCond %{REQUEST_URI} !^/admin
RewriteCond %{REQUEST_URI} !^/salesadmin
RewriteCond %{REQUEST_URI} !^templates
RewriteCond %{REQUEST_URI} !^common_code
RewriteRule (.*)/(.*)\.htm directory/search.php?groupnameurl=$1&q=$2 [L]
RewriteCond %{REQUEST_URI} !^/market\.php
RewriteRule (.*)-market/ market.php?groupnameurl=$1 [L]
RewriteCond %{REQUEST_URI} !^/market\.php
RewriteRule (.*)-market market.php?groupnameurl=$1 [L]
#end of URL for market page
order allow,deny
allow from all
deny from 66.195.77.130
deny from 82.50.190.84
deny from 58.61.183.73
deny from 121.13.187.239
deny from 87.11.224.180
RewriteCond %{HTTP_HOST} ^championsdubai\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.championsdubai\.com$
RewriteRule ^/?$ "https\:\/\/champions123\.com\/" [R=301,L]
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^Default\.htm\/?(.*)$ "https\:\/\/gulfyp\.com\/$1" [R=301,L]
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php74” package as the default “PHP” programming language.
AddHandler application/x-httpd-ea-php74 .php .php7 .phtml
# php -- END cPanel-generated handler, do not edit