Spec-Savers Winter (2019) veicināšana - bezmaksas rāmis līdz R1500 - v2
manā vietnē ir nepieciešams tikai viens vietrādis URL, lai pārbaudītu, vai tā ir mobilā ierīce, un pēc tam attiecīgi atkārto URL.
gribi pārrakstīt; / play-spole / miranda-bowen / playpeaches-and-cream to /mobilais/ play-spole / miranda-bowen / playpeaches-and-cream
RewriteCond %{HTTP_USER_AGENT} ^.*iPhone.*$ [NC] RewriteRule ^play-reel(.*)\$ mobile/play-reel$1 [R=302,NC] RewriteRule ^mobile/play-reel/([a-zA-Z0-9\-]+)/([a-zA-Z0-9\-]+)$ play-reel-new-html5-02.php?director=$1&video=$2 [L] # the 3rd line works but cant get the url to change for it to be picked up
vai kāds var redzēt, kas par vainu? Erro nav
vislabāk, Dan
Apskatiet kodu, kuru norādījāt atbildē. Es neesmu pārliecināts, bet tas varētu izskatīties šādi:
RewriteRule ^play-reel(.*)\$ mobile/play-reel/$1/$2 [R=302,NC]
tas darbojas, bet nemaina redzamo URL
RewriteRule ^ play-reel (. *) \ $ Play-reel-new-html5-02.php? Director = $ 1 & video = $ 2 [L]