Ok so I created a CSV file and originally left off the http:// (or https://), www and domain name from both URL and Redirect URL columns so all URLs started with /URLHERE – the problem is that URLs from the old website all started with www while the new website does not have www so when I upload the CSV (or even when I try adding some of these redirects one by one), the old URLs aren’t being recognized since the new website isn’t using the WWW. I tried using the FULL URLs and it still doesn’t work. Please tell me there is a quick/easy solution using some sort of regex or something…?? How do I make the Redirection plugin know that my original/old URL column URLs should be recognized as beginning with WWW??
[ad_2]
One solution would be to force your site to become www
The way to do it is use htaccess file and insert this.
make sure you insert the code in the right order on top, so here it bow your htaccess should look
# BEGIN Force www
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
# END Force www
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress