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

Manage Redirects not working for space or parenthesis

  • November 10, 2023
  • 1 답변
  • 1111 조회

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!

이 주제는 답변이 닫혔습니다.

1 답변

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
LyonMartin작성자
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.