Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

External redirect overriding Internal Vanity URL in CQ 5.6.1

Avatar

Level 2

I have a page www.abcd.com/xyz.html .In the page properties of this page,the following vanity URL's are set :

  • dealsintelligence
  • dealsbusinessintelligence

www.abcd.com/deals is an external redirect which gets redirected to www.pqrs.com. This external redirect is configured as a 301 rewrite rule in the dispatcher(Apache Server)

Now when I access www.abcd.com/dealsintelligence and www.abcd.com/dealsbusinessintelligence , it gets redirected to www.pqrs.com instead of getting redirected to  www.abcd.com/xyz.html

"deals" substring is common between the vanity url and the redirect rule. When there are common substrings between vanity URL and redirect rule, we notice that the external redirect rule in apache is taking precedence. Can you tell me why such precedence takes place ?

Hence the issue is that an external redirect is overriding an Internal Vanity URL.

1 Accepted Solution

Avatar

Correct answer by
Level 6

Can you post the part of the httpd.conf that holds the deals redirect?

Most likely, you are having an open ended matcher.

It is a huge diff between

RewriteRule ^/deals www.pqrs.com

that matches "anything starting with deals"

and

RewriteRule ^/deals$ www.pqrs.com

that matcher "exactly /deals".

/Ove

View solution in original post

0 Replies

Avatar

Correct answer by
Level 6

Can you post the part of the httpd.conf that holds the deals redirect?

Most likely, you are having an open ended matcher.

It is a huge diff between

RewriteRule ^/deals www.pqrs.com

that matches "anything starting with deals"

and

RewriteRule ^/deals$ www.pqrs.com

that matcher "exactly /deals".

/Ove