× Here you can get community support related to ReDJ.

avoiding duplicate data, redirect www to non www

  • jennyscakes
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 3 months ago #3381 by jennyscakes
Hi, I have started using redJ, very useful! However, just generated a sitemap and discover that there are lots of duplicate pages with www and non www , see example extract from xml file-


-<url>
<loc>www.jennys-cakes.com/
<lastmod>2014-12-10T13:03:22+00:00</lastmod>
<changefreq>daily</changefreq>
<priority>1.00</priority>
</url>

AND
-<url>
<loc>jennys-cakes.com
<lastmod>2014-12-10T13:03:25+00:00</lastmod>
<changefreq>daily</changefreq>
<priority>0.85</priority>
</url>

lots of other examples too. Here is an extract from the .htaccess file-

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^jennys-cakes.com
RewriteRule (.*) www.jennys-cakes.com/$1 [R=301,L]

Can you please advise if there is a problem, and if so how to fix?

website is www.jennys-cakes.com

Many thanks!!

Please Log in or Create an account to join the conversation.

More
9 years 3 months ago #3383 by admin
Hi,
the problem is that your rule to redirect non-www to www doesn't work.

Can you send me the whole .htaccess file? Post here or (better) send me an email at info(at)selfget.com.

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

More
9 years 3 months ago #3384 by admin
Meanwhile,
try to change the piece:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^jennys-cakes.com
RewriteRule (.*) www.jennys-cakes.com/$1 [R=301,L]

With:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^jennys-cakes.com [NC]
RewriteRule ^(.*)$ http://www.jennys-cakes.com/$1 [R=301,L]

Please Log in or Create an account to join the conversation.

  • jennyscakes
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 3 months ago #3404 by jennyscakes
Replied by jennyscakes on topic avoiding duplicate data, redirect www to non www
Hi, needing some urgent help- another vendor (eshop) had somehow disabled redj in an attempt to get their shoppig cart going, in the proces has managed to mess up the .htaccess file and stop redj from working. Now the site is actually broken! Can you offer any help to get redj working and/or recreate the .htaccess file? thanks in advance, desperate scotsman!
site is jennys-cakes.com

Please Log in or Create an account to join the conversation.

More
9 years 3 months ago #3405 by admin
Hi,
contact me in private at info(at)selfget.com or (better) on skype (link below).

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

  • jennyscakes
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 3 months ago #3406 by jennyscakes
Replied by jennyscakes on topic avoiding duplicate data, redirect www to non www
Hi Luigi, managed to get a copy of .htaccess and restored the site- phew! still need help on resolving the redirection from www.jennys-cakes.com to jennys-cakes.com Do you have any instuctions for this- could I use redj to do this for example? Many thanks again for your help!!

Please Log in or Create an account to join the conversation.

Time to create page: 0.112 seconds