I'm able to redirect
https://my.bank.com/caweb/ptbmc/appInfo
to the maintenance page
https://my.bank.com/maintain.html
cat httpd-ssl.conf
RewriteEngine on
RewriteCond %{QUERY_STRING} /caweb/#/ptbmc
RewriteRule (.*) https://my.bank.com/
RewriteRule ^(/caweb/ptbmc.*)$ /maintain.html [PT]
However, i need to redirect the URL now containing the special character # i.e., https://my.bank.com/caweb/#/ptbmc/appInfo
to the maintenance page
https://my.bank.com/maintain.html
I tried changing RewriteRule to -> RewriteRule ^(/caweb/#/ptbmc.*)$ /maintain.html [NE] but it did not work as well.
Can you please suggest what changes do i have to make in the RewriteRule to get this to work?
#character. It's only relevant within the browser.#?