This commit introduces new routing rules in .htaccess for mobile access, adds mobile-specific PHP includes and logic in compte.php, and enhances the footer scripts for mobile page handling. Additionally, new CSS styles are added to support the mobile registration interface. The version code is incremented to 4.72.670 to reflect these changes, improving the overall user experience for mobile users.
45 lines
1.7 KiB
ApacheConf
45 lines
1.7 KiB
ApacheConf
RewriteEngine On
|
|
RewriteBase /
|
|
|
|
# ====================================
|
|
# CI4 ROUTES PRIORITAIRES
|
|
# ====================================
|
|
|
|
RewriteRule ^test/?$ v3/index.php/test [E=IS_CI4:1,L]
|
|
RewriteRule ^admin-dashboard/?$ v3/index.php/admin-dashboard [E=IS_CI4:1,L]
|
|
RewriteRule ^resultats-nouveaux/?$ v3/index.php/resultats-nouveaux [E=IS_CI4:1,L]
|
|
|
|
# ====================================
|
|
# STOP SI CI4
|
|
# ====================================
|
|
|
|
RewriteCond %{ENV:IS_CI4} =1
|
|
RewriteRule ^ - [L]
|
|
|
|
# ====================================
|
|
# LEGACY ROUTES
|
|
# ====================================
|
|
|
|
RewriteRule ^kc/([\w\-]+)/([\w\-]+)/?$ ./kc.php?param1=$1¶m2=$2 [NC,QSA]
|
|
|
|
RewriteRule ^panier/([\w\-]+)/([\w\-]+)/?$ ./panier.php?lang=fr&step=$1&code=$2 [NC,QSA]
|
|
RewriteRule ^cart/([\w\-]+)/([\w\-]+)/?$ ./panier.php?lang=en&step=$1&code=$2 [NC,QSA]
|
|
|
|
RewriteRule ^compte/?([\w\-]+)?/?$ ./compte.php?lang=fr&code=$1 [NC,QSA]
|
|
RewriteRule ^account/?([\w\-]+)?/?$ ./compte.php?lang=en&code=$1 [NC,QSA]
|
|
|
|
RewriteRule ^mobile/?$ ./mobile.php?lang=fr [NC,QSA]
|
|
RewriteRule ^mobile/en/?$ ./mobile.php?lang=en [NC,QSA]
|
|
|
|
RewriteRule ^reserver/([\w\-]+)/(\d+)/?$ ./reserver.php?lang=fr&code=$1&id=$2 [NC,QSA]
|
|
RewriteRule ^book/([\w\-]+)/(\d+)/?$ ./reserver.php?lang=en&code=$1&id=$2 [NC,QSA]
|
|
|
|
RewriteRule ^don/([\w\-]+)/([\w\-]+)/?/?([\w\-]+)?/?$ ./dons.php?lang=fr&code=$1&pec_id=$2&par_id=$3 [NC,QSA]
|
|
RewriteRule ^donate/([\w\-]+)/([\w\-]+)/?/?([\w\-]+)?/?$ ./dons.php?lang=en&code=$1&pec_id=$2&par_id=$3 [NC,QSA]
|
|
|
|
RewriteRule ^page/([\w\-]+)/?(fr|en)?/?$ ./index.php?code=$1&lang=$2 [NC,QSA]
|
|
|
|
RewriteRule ^([\w\-]+)/?(fr|en)?/?([\w\-]+)?/?$ ./evenements.php?code=$1&lang=$2&tab=$3 [NC,QSA]
|
|
|
|
RewriteCond %{REQUEST_URI} !^/(rapports_js|superadm/.*)$
|