helping a client deploy their new website which has a large number of pages. I recently discovered I could create a rewriterule with a 301 redirect.
We have a large htaccess created for a standard rewriterule from urls of the old site to appear ont he new site, but we need them to turn into 301 redirect tot he new url structure on the website else we will have duplicated content.
For example:
RewriteEngine On
RewriteRule ^cs_AI_Adobe_CC_Design_Combo.html$ courses/adobe-design-combo [NC,L]
We want to create this into a 301? we have tried the following which didn't work:
RewriteEngine On
RewriteRule ^cs_AI_Adobe_CC_Design_Combo.html$ courses/adobe-design-combo [R=301, L]
Just wondering where I'm going wrong?
We also have larger more complex rules that work as a Rewrite but not a Redirect.
Thanks in advance!
RewriteRule ^cs_AI_Adobe_CC_Design_Combo\.html$ courses/adobe-design-combo [R=301,L]- anubhava