Manage Redirects not working for space or parenthesis | Community
Skip to main content
Level 3
November 10, 2023

Manage Redirects not working for space or parenthesis

  • November 10, 2023
  • 1 reply
  • 1111 views

Hi, would like to ask about the Manage Redirects.
we have a Source URL something like this
/content/<path>/<path>/<path>/filename (1).pdf

And it should redirect to 
{domain}/content/<path>/<path>/<path>/filename.pdf#zoom=25

I've tried similar approach to this one:
https://github.com/Adobe-Consulting-Services/acs-aem-commons/issues/2702#issuecomment-996704867
In which I converted the 'space' to underscore or hyphen via Dispatcher.
And tried adding rule to Manage Redirect 
/content/<path>/<path>/<path>/filename-(1).pdf
to
{domain}/content/<path>/<path>/<path>/filename.pdf#zoom=25

But it seems that it is not working.
What could be the possible approach or fix for this one.

Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

arunpatidar
Community Advisor
Community Advisor
November 10, 2023

Can you try with below rule

# Replace %20 with hyphen
RewriteRule ^(.*)\%20(.*)$ $1-$2 [N,E=redirected:1] 

Arun Patidar
Level 3
November 10, 2023

I already have that on the rule:
In which I converted the 'space' to underscore or hyphen via Dispatcher.
Now, my problem are the next steps after that.