Hello dpers I recently took an website evaluation test . I got a report . There was a clause I didn't understand. I would be glad if you people could help me out My Url Is www.dxbunderground.com could you have a look at the clause as mentioned below could some one guide me , what should I do ? to do this 301 redirection thing ?
Dude first up what di dyou use to check your site? I want to have a go. And secondly I just did this this morning. Google will see these urls for example: www.abc.com abc.com abc..com/index.html etc All pointing to the same page which is okay. But the problem that I understand is that google only cares about URL's. So essentially you have 2,3,4 or whatever different URLS. Then apparently all your link juice and page rank gets divided amongst the URLS. SO its better to only have the one URL detected as the MAIN URL for google. I added a code to my .htaccess file in my main dir. Just use notepad and copy this text and save file as .htaccess Text to use: -------------------------------------------------------------- # Redirect non-www urls to www Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} ^PUT YOUR URL IN HERE THAT YOU DON'T WANT [NC] RewriteRule ^(.*)$ http://www.PUT THE ONE YOU WANT IN HEREcom/$1 [R=301,L] ---------------------------------------------------------------- Then if you need to do multiples of this just copy the last to bits like so. Make sure there are no spaces. --------------------------------------------------------------- RewriteCond %{HTTP_HOST} ^PUT YOUR URL IN HERE THAT YOU DON'T WANT [NC] RewriteRule ^(.*)$ http://www.PUT THE ONE YOU WANT IN HEREcom/$1 [R=301,L] RewriteCond %{HTTP_HOST} ^PUT YOUR URL IN HERE THAT YOU DON'T WANT [NC] RewriteRule ^(.*)$ http://www.PUT THE ONE YOU WANT IN HEREcom/$1 [R=301,L] This seemed to work for me.
I use this rule in htaccess file RewriteCond %{HTTP_HOST} ^site.com RewriteRule (.*) http://www.site.com/$1 [R=301] RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html\ HTTP/ RewriteRule ^index\.html$ http://www.site.com/ [R=301]
You can follow the instructions given below http://www.stepforth.com/resources/web-marketing-knowledgebase/non-www-redirect - whether it is a apache server or microsoft server.
I have the same question. Can't I just do this through cpanel? There is an option for permanent redirect, but everyone else seems to be changing/adding their htaccess and I'm kinda confused. my cpanel says this in the Redirect section: Type: Permanent (301) http://(www.)? / __________ redirects to→ _______________ www redirection: [check one] __ Only redirect with www. ___ Redirect with or without www. ___ Do Not Redirect www. [check]______Wild Card Redirect Not sure how to do this..
hi pepole, read this. its useful link. here given all http status code definitions http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
may i just add something to this.... if say you are a blogger, and you want to place a 301 redirect on your blog and all it's posts and point it to a new domain, how do you do that?