Apache Rewrite rules for handling URLs containing "#"
Hi All,
I know this is a question more suited for other forums but just wanted to get an opinion if anyone has a handy rewrite rule for the below use case -
I want to redirect a URL for the format "https://abc.com/x/y#z" to "https://abc.com/"
The typical rewrite rule which we use is as below -
RewriteRule ^/x/y / [R=301,L,NE]
This however yields the URL - https://abc.com/#z
Changing the rule to below (including # in Rewrite rule) leads to the rule not being met at all -
RewriteRule ^/x/y#z / [R=301,L,NE]
Does anyone have a handy regex rule for handling the above use case?
@imran__khan, @arunpatidar, @sureshdhulipudi, @raja_reddy ,@aanchal-sikka, @estebanbustamante
Thanks in advance,
Rohan Garg
