i have 2 .htaccess files
first in /public_html/
#ErrorDocument 404 https://example.com/en/404.php
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://example.com/$1 [R,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !/ws/
RewriteCond %{REQUEST_URI} !/en/
RewriteCond %{REQUEST_URI} !/ar/
RewriteCond %{QUERY_STRING} !lang=en
RewriteCond %{QUERY_STRING} !lang=ar
RewriteRule (.*) $1?lang=en [QSA]
and the other file is in /public_html/jobs/
RewriteOptions inherit
DirectoryIndex index.php
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} ((\d+)?)
RewriteRule ((\d+).*?) /job/index.php?JobID=$2 [QSA]
i want to redirect URL from:
https://example.com/jobs/123
to:
https://example.com/job/index.php?JobID=123&lang=en
but the result is
https://example.com/job/?JobID=1196147
without the lang parameter
i don't know why it isn't working and i need the rules in 2 files because there's many other rules in the root file
Thanks.