Jump to content

Recommended Posts

Hi all, 

I had a webshop running for several years and gained a number of backlinks. 

It was set under domain name norwayshop.com (without www).

I recently reinstalled the webshop and transferred all the DB, including URLs with the main purpose to retain backings. This time the shop is set as www.norwayshop.com (with www).

However, a number of my backlinks are pointing to the one which is without www. I solved the issue with the main domain by setting up a redirect on cpanel, but when it comes to subfolders it no longer works properly. 

Try for example:

NorwayShop.com it will be redirected to www.norwayshop.com (fine) 

And then try:

NorwayShop.com/es I then get a 404 error (even though the main domain loads, it gives an error and damages my SEO) 

Possible maybe to fix via registrar (DNS)? 

I would be grateful for the advice. 

PS 1.6.18

 

Rgds, 

Tomas

Edited by TomPuja
Correcting typo. Adding more comments. (see edit history)

Share this post


Link to post
Share on other sites
15 hours ago, TomPuja said:

Hi all, 

I had a webshop running for several years and gained a number of backlinks. 

It was set under domain name norwayshop.com (without www).

I recently reinstalled the webshop and transferred all the DB, including URLs with the main purpose to retain backings. This time the shop is set as www.norwayshop.com (with www).

However, a number of my backlinks are pointing to the one which is without www. I solved the issue with the main domain by setting up a redirect on cpanel, but when it comes to subfolders it no longer works properly. 

Try for example:

NorwayShop.com it will be redirected to www.norwayshop.com (fine) 

And then try:

NorwayShop.com/es I then get a 404 error (even though the main domain loads, it gives an error and damages my SEO) 

Possible maybe to fix via registrar (DNS)? 

I would be grateful for the advice. 

PS 1.6.18

 

Rgds, 

Tomas

 

Add this in .htaccess

 

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More