Welcome to WebmasterWorld Guest from 184.108.40.206
Forum Moderators: open
What happened is that, despite having NO content on the old pages, the old pages still outrank the new ones. When doing searches for the pages keywords, 9 times out of 10 the old ones come up in the SERPS's, with the new ones occasionally listed below.
Am hoping this phenemonan (?) will disappear after another update.
If you have access to the server and will be doing this sitewide (not just on selected pages), probably a permanent server side redirection would be best to use.
my site has thousands of pages that are bases only in some php scripts that generate output from a database query.
if i change urls and querystring, i cannot manually redirect this big number of pages so they will be 404. this is not very important as i can redirect every 404 to index. but my question is: google will consider this massive changes as something like "spamming" or fault?
I have structurally changed a huge site(30,000+ URLs) and redirect all old URLs to the home page using the 404 redirect. Have no problem with Google, after a few updates the new URLs have replaced the old ones.
Just make sure that the header does return a 404. Some here would say that 301 is better, nonetheless just make sure that the header is returning the right error code.
As an aside, you might lose some traffic and page PR
First, let's say Welcome to Webmaster World [webmasterworld.com]. (Tsk, tsk. Where's everybody's manners? :) )
I'm not a mod_rewrite person so can't help with the details, but it sounds like if you can come up with a *very logical* renaming scheme then you should be able to add a few lines to your .htaccess file to return a 301 and rewrite the urls on the fly.
Hope I'm not too far off base here and that someone with mod_rewrite expertise comes along to say yea or nay.
I did roughly the same but saw in advance the problem that that could cause, so I put this on every one of the old pages:
<meta name="robots" content="noindex,follow">
It worked exactly as planned. In this last update Google has dropped every single page of the old site completely out of the index, and indexed and listed the new site in its place. Even better, the new site is doing a lot better in the listings than the old site ever did. It took 7 weeks for Google to take note of, and action, the required changes, and they completed last night.
Maybe you could try that?
After seeing the results of the update, that's exactly what I did. Went through and detached all the files from the template, then added in the noindex, follow into the robots tag. Was too lazy when I initially removed the content to do it and got a bit burned by Google because of it! Happily, that area of my site dind't receive much traffic, so not a huge loss for a month or two.
My site is on a Windows Server, so I don't think I can use a .htaccess (isn't that for Unix servers only?)
Hopefully, the next update will clear things up.
.htaccess files are also available for Windows servers. This is the preferred filename for access control of the Apache [httpd.apache.org] webserver. So if you run Apache on a Windows machine you will be able to use .htaccess. And also mod_rewrite, which you can use to redirect a whole lot of pages via a logical operation to other pages.
For example if you old URLs were of type "/sql.php?page=5" you could easily redirect that page to "database/page5.html" or similar. For the whole lot, using a recipe.
Just to clarify one more thing: A few of you were talking about 404 as redirects. No, 404 is the error code to return to the browser (or Google) that the page does not exist anymore! So Google would drop it, but that is all.
What you want is a 301 redirect code. In your .htaccess file it should read like
on one line for one single file to be redirected.
Redirect permanent /old/filename.html http://www.mysite.com/new/page.html
As I said, for a whole lot of URLs to be rewritten get a very good read of the mod_rewrite pages [httpd.apache.org] and then test your theory on a local Apache server and if you run into problems ask our great experts right here on WebmasterWorld!
If your site is hosted on a Apache server and you are able to define some "rules" to map the old urls onto new ones, the most efficient way would be using mod_rewrite with the "301 - moved permanently" header.
This is the procedure Google recommends as it would allow you to transfer PR from your old pages to the new ones.
As a side effect, you won't lose any of your visitors, which is way cool :)
Thanks for all the info. Unfortunately, Apache isn't run on my hosts webservers. All my new sites will be going on non-windows servers, but when I started my first site, I didn't know thing one about hosting, Unix, Google and all the other considerations that go into webhosting.
Does the mod_rewrite work for windows, or is that also only an Apache thing?
go to [news.netcraft.com ] and check out what your webserver really is running on (left hand side "whats that site running on"). Because as you can see from the graph, chances are that your host uses the same server as over 62 percent of all hosts, namely Apache.
Just to clarify another thing: Apache can be run on Windows, especially the new version 2 servers. But it is not recommended, not due to Apache security problems, but because of Windows security problems inherent to the operating system!
So my advice to you is to download Apache for Windows (url see last post) for your local machine to test out things. Apache for Windows automatically comes with a few modules, one being mod_rewrite. Apache is a very small download and performs on a Win XP system quite stable, with mod_rewrite and the separate PHP module installed. Yes, you should read through a few configuration files by hand, not only to try and understand them, but also to learn a lot about what you can do with your testbed server.
And about your current host: If they really don't run Apache then all the mod_rewrite tips you'll find on this board won't help you much until you say goodbye to your host and go to someone with Apache on Linux installed.
Only government organisations do not want to save money for some reason...
Still, all this info. will be very helpful indeed on future sites - or when I move the site to a new host.