Php – htaccess set cookie on first load without redirecting
I am trying to use htaccess to make multi-language site and to translate something like site.com/de/path to site.com/path and set a cookie for language to "de" in this case. currently i have this solution: RewriteCond %{HTTP_COOKIE}::%{REQUEST_URI} !language=(en|de|fr|ar).*::/1/.* RewriteRule ^(en|de|fr|ar)/(.*)$ /$1/$2…