I have an inbound link to my site which has %00 after the .html extension.
Example: /directory/example.html%00
I would like to redirect this url using htaccess to
/directory/example.html
Due to the % sign I am having problems with this redirection.
In htaccess this does not work because of the % sign.
RewriteRule ^directory/example\.html%00$ /directory/example\.html [R=301,L]
I have tried escaping the % sign with \ first.
I have searched online about this and am still struggling. Perhaps a Rewrite Condition must be implemented first? As %00 is a special character (zero hex code) apache is not given a chance to rewrite it?