Options +FollowSymLinks
RewriteEngine on

RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.mawad.sa/$1 [R,L]

RewriteRule page/(.*)/(.*)/ page.php?C1=$1&C2=$2
RewriteRule page/(.*)/(.*) page.php?C1=$1&C2=$2

RewriteRule page/(.*)/ page.php?C1=$1
RewriteRule page/(.*) page.php?C1=$1

RewriteRule activity/(.*) activity.php?url=$1
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php

#RewriteEngine On
#RewriteCond %{HTTPS} !=on
#RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
<FilesMatch "^(type.php)$">
Order Allow,Deny
Allow from all
</FilesMatch>

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php73” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
