Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
I have a page(http://localhost:4502/content/page/test.html) for which 301 redirect has been set using the redirect manager, in this page we added the alias property(testingalias) under advanced tab. Now the redirect is working for the page(https://www.test.com/page/test.html) but not for the alias URL(https://www.test.com/page/testingalias.html). Is this expected or we should set 301 redirect for the alias as well?
Solved! Go to Solution.
@HelpTech
If your goal is redirection from /page1.html to /page1-alias.html, then you should use the Rewrite Rule directive:RewriteRule /page1.html /page1-alias.html [R=301,L] - for 301 redirect (the path shown in browser will be /page1-alias.html) or
RewriteRule /page1.html /page1-alias.html [PT] (the path shown in browser will be /page1.html)
https://httpd.apache.org/docs/2.4/mod/mod_rewrite.html#rewriterulehttps://httpd.apache.org/docs/2.4/rewrite/flags.html
View solution in original post
Views
Likes
Replies
Like