Google still crawling old site [closed] - php

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 9 years ago.
Improve this question
I have recently re-designed my website and all the link structures and so on, i submitted a new site map for the new design and i am using a bit of code to keep track of when googlebot comes to my site and which pages it visits.
if ( strpos( $_SERVER['HTTP_USER_AGENT'], 'Googlebot' ) !== false ) {
//Google bot is here
}
Every time it comes over though it visits pages from the old design which now gives it a 404, anyway to make it stop crawling old site and to crawl new one instead?

Instead of 404 pages, use HTTP 301 responses - they indicated a page has moved permanently and that all clients should update their links.
If you can link topic to topic (or better article to article) you're more likely to retain page rankings, but failing that link to the new domain and you'll get your ranks back pretty quickly.

Try using the Google Webmaster Tools I recently had a similar problem with a website redesign. The new content was in less than a day in Google search results. Just log in, add your site and use Site configuration > Sitemap link option to add your Sitemap URL.
This link help me a lot with the process: http://www.hmtweb.com/marketing-blog/how-to-use-fetch-as-googlebot-to-submit-a-recently-changed-page-to-googles-index-tutorial/
Good luck.

Related

"hide" my website address/URL from Facebook google+ etc [closed]

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 9 years ago.
Improve this question
hi how can i "hide" my website address/URL from Facebook goggle+ etc.... tracking cookies.in order to keep the privacy of the the people who browse my website ,100% of them have an account in one or more of the popular social networks.they don't want that this website will be documented in Facebook .(and no it is not porn:)
Social networks will only know if a person visits a website if either:
The person has a browser extension installed which tells them (there is nothing you can do about this)
The person follows a link from a social network (in which case the network can find out before the browser arrives on your site, so there is nothing you can do about it)
Your site loads resources from a server controlled by the social network (such as Share links or Google Ads). Don't add such features to your site.
Just don't put "like"/"+1" buttons on your website, and neither Facebook nor Google will know their users visited your site.
you can't hide your url, when users click on a link to facebook, google etc.
A really good way, that facebook & co. can't get your url without a user-click is a two-click plugin like http://www.heise.de/extras/socialshareprivacy/ (the documentation is in german, but you can copy the code - it is intuitive usable)...
I'm not sure, but maybe you can also try to redirect all external links over an other site - but I can't garant that it will solve the problem ;)

Does a sitemap need to contain linked static pages? [closed]

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
I want to generate a sitemap for my dynamic content. Do I need to also include the static pages which are already linked throughout my site? I want to just make a script which will query my inventory and then generate sitemap based on that.
Want to do it with PHP.
After submitting the sitemap, I'm hoping google will still find my static pages even if they are not listed in the sitemap!
Thank you
-D
If your files are linked then Google will find them, however, personally I like to include all of my pages (static and dynamic) in my sitemap. This just ensures that Google can see everything.
There are several websites you can use to generate sitemaps, this is one that I like:
http://www.web-site-map.com/index.php
You can then add to the sitemap, any pages that are not linked to from the submitted document.
Hope this helps
UPDATE
Google DOES index any pages that are linked within your site, however, a sitemap makes this process more efficient and effective. At the end of the day, it is up to you whether or not you use one. As they are so easy to build, I don't see why you wouldn't as it will not damage your SEO, it will only help it, if anything.
The important thing to note is that any pages that are not linked, Google (and any other crawlers), will not find! This is where sitemaps are very useful.
To summarize, sitemaps are not absolutely necessary, but they are strongly recommend!

Is it possible to integrate Google Analytics w/ multiple accounts by subdomain? [closed]

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
I'm trying to understand if this is a use case Google Analytics API is meant for. Most of the examples I've come across are for pulling info for a site you control and already have analytics set up for, which is little different than my use case.
What I'm trying to determine is, I run a site where users get their own mini-site. So user1.domain.com, user2.domain.com, etc. We get requests quite often from users who would like to add Analytics code to their site so they can see how it's performing, so we're looking at seeing if there is some way we can bake this into our backend and just require the user to login to their Google Account and authorize analytics and set this up for them behind the scenes.
Anyone with a similar use case / know if this is possible? I'm thinking the domain ownership verification would cause trouble since all users share the same domain even though the subdomains differ.
EDIT: I still want to see how others might approach this, but one idea I came across is to just set up a master account and then filter by subdomain in the API. Folks couldn't log in and get their own full analytics experience which would be a bummer, but I could still make a basic interface to get simple traffic data for them. Not ideal, but a possibility.
I should say that this is possible. Because wordpress does it. Click this to get a tutorial on how to do it.
Also be careful. There are some do's and dont's which the below link describes well.
http://www.roirevolution.com/blog/2011/01/google_analytics_subdomain_tracking.php

Problem: Visitors will not like a website with no content [closed]

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 11 years ago.
Improve this question
This is a general questions regarding building a website with user generated content. A new website will start with no content, then visitors to the site will not want to visit it again because there is no content for them to view.
For example, a review site like Yelp has no reviews will not have return visitors! How do you solve this?
You need to offer some reason to be there besides the reviews or whatever user-generated content you're trying to integrate into the site. Yelp is a site that searches for restaurants and lists them by type and location, that is the main service which it provides. Offer the user-generated content as a secondary reason to come, then when the user-generated content starts to come in, slowly incorporate it more and more until it becomes the core of the site.
People will only visit your site if they get something out of it, even if it is something as simple as displaying their input in an interesting way.
Your question is off topic I think on every site on the network right now, but for what it's worth, the approach this very site (and the Q&A network that came out of it) took was that of a closed beta - accessible only to a select circle of people - that would seed the site with content.
See e.g. Area 51: Asking the First Questions
The Stack Overflow blog has many references to avoiding building "Ghost Towns". They're not the only voice on the subject, but they have obviously been very successful with this approach.

What free CMS can do the following [closed]

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 12 years ago.
Improve this question
I'm looking for a CMS I can embed inside an already existing php website. Basically I just want something that I can make blog posts from and then those blog posts will show up inside my website's content div. I'm really not looking for anything too fancy but don't really want to hack wordpress. Suggestions?
Wordpress isn't that bad an idea for this: You can access WordPress content from within a PHP application on the same server by including the WordPress bootstrap. You can then list and/or fetch the blog entry / article / page you need.
See e.g. this SO question and especially this one (Galen's top voted answer shows the whole process of fetching a page.)
You could use Osmek's free account. Osmek integrates easily into an existing application since its centrally hosted and requires no database setup. Check out this video http://osmek.com/video
Disclaimer I work for Osmek, so I am biased. But feel free to ask me any question.
Joomla makes it about as simple as possible and will leave room for the day a client calls up and asks for a more advanced feature. Installation into a folder is something pretty common, too.
There are multiple options which are prepositioned for embedding. Most promising seems "PHP News System" http://phpns.alecwh.com/, though I haven't used it and cannot qualify it much. But it claims the embedding process is just a single php call, which still sounds acceptable.
If you want just a blog, I'd recommend Serendipity over Wordpress. Firstly because of the better security track record, and second because it specifically has a switch for embedding it within an existing layout; so unlike WP doesn't need as much workarounds.

Categories