We have create a new website for my company and we decide to keep the old one and make it redirects all content and pages to similar content pages to the new website.
I have create an htaccess file to replace the old file at the old website.
This htaccess file contains the following lines:
<IfModule mod_rewrite.c>
RewriteEngine On
Redirect 301 / http://newsite.com
Redirect 301 /contact http://newsite.com/contact/
Redirect 301 /category/products http://newsite.com/shop/
Redirect 301 /category/tools/makita http://newsite.com/shop/makita/
Redirect 301 /products/new-products http://newsite.com/shop/whats-new/
....etc...
</IfModule>
Now the problem is that (except the home page that worksfine) all other pages redirects but missing the first trailing slash after the domain name.
For example:
oldsite.com/category/tools/makita ===> newsite.comcategory/tools/makita
What can i do to resolve this? I forgot to mention that both websites are in Wordpress CMS on Apache Server (php 5.6 and FastCgi Module)
Thanks in Advance!
P.S.: English isn’t my first language, so please excuse any mistakes