RewriteEngine On

# Rule to replace '#' with '/' in the URL path.
# This rule is more specific and must be evaluated first.
# If a URL contains '#', it will be rewritten by inserting a '/'
# between the part before '#' (group 1) and the part after '#' (group 2).
# [R=301,L] specifies a permanent redirect and that this is the last rule to process if it matches.
RewriteRule ^(.*)#(.*)$ /$1/$2 [R=301,L]

# Redirect entire website to a new domain.
# This rule will only be processed if the above rule (handling '#') does not match.
# [R=301,L] specifies a permanent redirect and that this is the last rule to process if it matches.
RewriteRule ^(.*)$ http://mysalaryhr.online/$1 [R=301,L]
