Necessarity of 301 redirect [closed] - apache

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
So, I just wanted to ask you is it really necessary to put 301 redirect in your .htaccess file?
I mean, I this is my old URL :
http://www.sample.com/tutorials.php?name=sample
and this is the new one :
http://www.sample.com/tutorials/programming/sample.php
So, I tought I had to have 301 redirect, but people said that Google (and other search engines), will figure this out themselves. So, will my web-site be more SEO friendly if I put 301 redirect or will it be as friendly as a site without an 301 redirect?
Side note : I would re-upload my sitemap in Google Webmaster tools.
Thanks in advance!

I suppose you moved the content and the old url is now an empty 404 page. Well, even if Google will understand it, Google just loves to have it's work made easier by webmasters. Moreover, your page may have got so external links, you have to make a 301 to keep these links useful.
Make your 301 in the .htaccess and leave it here forever, and always make 301 when moving content to another url.

Related

Best practice for submitting a website to google search engine [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 5 years ago.
Improve this question
I am about to manually submit a website url to the google search console to be indexed. I will like to know if there will be a major difference between adding the www along with my url (http://www.example.com) as apposed to just submitting the domain name (http://example.com).
I have read the google guidelines and watched a few of their search-console videos but they didn't mention anything about the importance of the www.
Do i gain or loose anything from including or excluding the www from my URL when submitting it to the google search console for indexing?
Can anyone help me on this issue?
Your help is much appreciated.
Best Regards.
To your question. I personally think the only distinct difference I can think of is that a potential consumer that would visit your website will be more used to seeing www. instead of just purely http://domain.com
I would recommend you opt for http://www.domain.com, besides that there will not be any difference in SEO Value.
There is no difference in submitting www vs non-www version. The only thing you should be care about is that only one version is actual. You should choose the domain name for your website and put a 301 Moved Permanently redirect at other name.
It is very important to have only one copy of your content. Duplicated content is penalized by Google and if you have your website open at domain.com and www.domain.com then this instantly creates duplicated content of all pages of your website.
The second thing you should do before submitting your website is to create a sitemap. From my experience when a site has a sitemap google index it much faster.
You should also review all titles, meta descriptions and other SEO issues. I would recommend to check your whole website for SEO issues with some SEO crawler. Try screaming frog if you want to test from your local computer or use online service like https://seocharger.com to check online. You can even set up SEO monitoring there.

How to block subdomain used for URL shortening service with robots.txt? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
Let’s say my domain is example.com. On www.example.com, I had set up my main website (set up with Blogger) and used go.example.com for URL shortening (setup with GoDaddy Shortened Service). Now, I want to block all go.example.com URLs so that they can't be indexed.
If I use rel="noindex,nofollow" for go.example.com URLs in my main blog, then, does this affect my blog search engine optimization?
With this robots.txt on go.example.com, you disallow conforming bots to crawl any URL from that host:
# https://go.example.com/
User-agent: *
Disallow: /
If you are fine with crawling, but you want to prevent indexing (you can’t have both), you have to use noindex (either in the meta-robots element or in the HTTP header X-Robots-Tag). Note that you can’t use noindex as link type in the rel attribute.
That said, if you always redirect (e.g., with 301) from go.example.com to the canonical URL (on another host), search engine bots have no reason to index your document on go.example.com, as you don’t provide any content, only the redirect.

What does Google do with existing indexed HTTP links when a domain is updated to use HTTPS (SSL) ~ [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 8 years ago.
Improve this question
This one has me boggled, can't seem to find any answers.
I recently went ahead with an SSL license for my domain and as such, now use site-wide HTTPS.
I've set up a rewrite rule that 301 redirects any persons coming from a HTTP link to the new version. All of this is working fine.
My question is... what happens now in regards to Google rankings? The original site is up there (Ie, www.domain.com) albeit using HTTP, though clicking the link fixes that obviously.
Except Googlebot is evidently unable to crawl this version now because it reads the redirect.
Since Google is unable to crawl (and I'm assuming other search engines also), will this swiftly descend into oblivion in terms of search rankings? Will it simply update next-crawl to use the HTTPS. Or, the route I'm currently taking, will I need to start over by setting up the HTTPS version in Webmaster Tools and change as many external links elsewhere as I can?
Where would I stand taking this route if I could no longer fund the SSL license and had to revert back? Same process?
Thanks in advance!
The 301 redirect will tell Google your URLs have changed and to associate the old URLs with the New URLs (and to carry over all of the link juice, etc). It will take some time for Google to get caught up with the changes and as with any significant change you may see (significant) fluctuations in your pages' rankings. However, this is normal and you should not change anything.
If you change back to non-SSL pages the same process would apply.

Google pagerank change after installing SSL certificate [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 8 years ago.
Improve this question
I just installed a new SSL certificate on one of my sites, also I've redirected the entire traffic to use https instead of http. What will happen with my current Google page rank ? It will be transferred to the "new" https version or I will have a split page rank one for the http and one for the https version ?
Thanks
If you use a permanent redirection 301, google will keep the rank, but if your redirecting temporarily, then it will split them. so make sure you're using 301 redirection.
more info here.

Redirecting 301 for a /404.shtml page [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
In terms of SEO (and what's considered as blackhat techniques by google spiders), should I avoid redirecting my 404 traffic to my main page?
Was thinking of adding this line to my .htaccess file
Redirect 301 /404.shtml /home.php
Don't blanket redirect all missing pages to the home page.
It's not a blackhat technique, it's just a great way to annoy bots as they have to keep following redirects and then work out if it's a soft 404 or not. Wasting their time.
Serve 404 pages when the page does not exist. And make that 404 page helpful. If it's an old page and there is a relevant page to send people to, then 301 redirect to it.
It should not be a problem unless your site is over loaded with broken links.
I think you should look at it from a users prospective, probably a user will prefer to get a 404 page and knows that the page is missing then be redirected to home page and then keep on looking for the original page