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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

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