my blog snooplove.com got indexed without the www can someone explain this to me ??? one more thing,, my site is appearing on google with an html code although im using All in one seo ... thanks in advance , +rep for helpful members
Try adding this in .htaccess for redirect from without www to with www RewriteCond %{HTTP_HOST} ^snooplove\.com RewriteRule ^(.*)$ http://www.snooplove.com/$1 [R=301,L] Code (markup):
Open your .htaccess file - let me know if you don't know what it is and I can explain further - and delete the redirection (you should be able to make out which part is redirecting). If you'd like more help, I'd be happy to help on the forum address in my sig.
Could you paste the contents of your .htaccess file here and hopefully me or someone else will be able to tell you what you need to delete to stop the redirect.
Here it is # BEGIN Url Rewrite section # (Automatically generated. Do not edit this section) <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d [OR] RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php RewriteCond %{REQUEST_URI} !/main\.php$ RewriteRule . - [L] RewriteCond %{THE_REQUEST} /d/([0-9]+)-([0-9]+)/([^/?]+)(\?.|\ .) RewriteCond %{REQUEST_URI} !/main\.php$ RewriteRule . /main.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2&g2_fileName=%3 [QSA,L] RewriteCond %{THE_REQUEST} /v/([^?]+)\.davmount(\?.|\ .) RewriteCond %{REQUEST_URI} !/main\.php$ RewriteRule . /main.php?g2_view=webdav.DownloadDavMount&g2_path=%1 [QSA,L] RewriteCond %{THE_REQUEST} /w(/[^?]*)?(\?.|\ .) RewriteCond %{REQUEST_URI} !/main\.php$ RewriteRule . /main.php?g2_controller=webdav.WebDav&g2_path=%1 [QSA,L] RewriteCond %{THE_REQUEST} /v/([^?]+)(\?.|\ .) RewriteCond %{REQUEST_URI} !/main\.php$ RewriteRule . /main.php?g2_path=%1 [QSA,L] </IfModule> # END Url Rewrite section
i installed gallery 2 and then tried uninstalling it which caused some issues so i had to delete the files manually
Make sure you only have one version though. Having both www and non www will create a duplicate content issue.
HOLD UP!!! Don't do anything above.... because.... It seems like you are using WordPress (All-in-one SEO Pack is Wordpress plugin). WordPress does this automatically for you. Just go to your control panel > Options In Options, for WordPress address (URL), and Blog address (URL), add the www. to your url, everything will be redirected with a www. This is simple, don't make it complicated using .htaccess.... Afiliator
Great point. Also, if you are going for SEO, I also suggest getting the Google-Sitemaps-XML plugin. It is one of the best wordpress plugins for SEO.