fr600
03-19-2007, 02:46 AM
Hi,
Is it possible to display Error 404 with the help of htaccess for a page that already exist?
Is it possible to display Error 404 with the help of htaccess for a page that already exist?
|
Click to See Complete Forum and Search --> : 404 for existing page? fr600 03-19-2007, 02:46 AM Hi, Is it possible to display Error 404 with the help of htaccess for a page that already exist? piersk 03-19-2007, 07:00 AM Probably. But why would you want a "page missing" error when the page isn't missing? bradgrafelman 03-19-2007, 09:14 AM I suppose you could use mod_rewrite... RewriteRule ^path/to/somepage\.html$ /error_page.html [R=404] fr600 03-19-2007, 09:40 AM Probably. But why would you want a "page missing" error when the page isn't missing? Yes, I know it sounds weird but I want to remove a few pages from google search result. And thnx bradgrafelman, I'm gonna try it and see how it works. piersk 03-19-2007, 09:55 AM if you want google to unindex it, you're probably better off looking at your robots.txt (http://www.robotstxt.org/wc/norobots.html) file instead. fr600 03-19-2007, 09:58 AM I suppose you could use mod_rewrite... RewriteRule ^path/to/somepage\.html$ /error_page.html [R=404] It says "Internal Server Error" @piersk: I can but that takes time. leatherback 03-19-2007, 10:06 AM @piersk: I can but that takes time. And this doesn't? piersk 03-19-2007, 11:14 AM Google will still have to re-index the pages before it will change, so (as LB suggests) this will take just as long. Also, if you use the mod_rewrite method, ANYONE who goes to that page will see the 404 error, not just google. I think the robot.txt file is the way forward with this. fr600 03-19-2007, 02:41 PM And this doesn't? Heard of "google url console" ? leatherback 03-19-2007, 04:34 PM Heard of "google url console" ? Nope, I have not. Please elaborate. J bradgrafelman 03-19-2007, 05:53 PM Now that I know the application of this, I agree with the others - using a robots.txt is the way to go. I don't know why you think it "takes time" and that URL rewriting doesn't... in fact, using a robots.txt to disallow the page would probably require less typing than rewriting the URL to a 404 page would. fr600 03-20-2007, 08:06 AM Nope, I have not. Please elaborate. J URL: http://services.google.com:8882/urlconsole/controller Here you can remove outdated urls only if there is error 404. It takes 3-5 days to remove an url completely from the search result. piersk 03-20-2007, 01:56 PM And (if my server logs are anything to go by as well as doing a search on google) google indexes far more frequently than that piersk 03-20-2007, 01:58 PM URL: http://services.google.com:8882/urlconsole/controller Here you can remove outdated urls only if there is error 404. It takes 3-5 days to remove an url completely from the search result. And whats the first thing that even google suggests... oh would you look at that. Use robots.txt :glare: Bunkermaster 03-21-2007, 07:09 AM that won't remove the google cache if there was any. piersk 03-21-2007, 07:31 AM Did anyone feel a chill in here? Weedpacket 03-21-2007, 08:34 AM Yeah, but I thought that was the ghost of John Backus. "That was quick", I thought. stolzyboy 03-21-2007, 08:52 AM bunker what? Bunkermaster 03-21-2007, 09:57 AM you guys need to work on your welcoming skills. piersk 03-21-2007, 10:06 AM Who said you were welcome? :D Seriously it's good to see you again. It's been too long. You still workin for Jolt? leatherback 03-21-2007, 10:25 AM you guys need to work on your welcoming skills. Hey there Bunker! How did you master to crawl out of nothingness!? Are you really britney spears? Were you released today too!? Welcome back! J. stolzyboy 03-21-2007, 03:06 PM you guys need to work on your welcoming skills. :P dalecosp 03-27-2007, 12:48 AM http://www.daleco.biz/images/wb_bunker_sm.jpg (http://www.daleco.biz/images/wb_bunker.jpg) Better? PHP Builder
Copyright Internet.com Inc. All Rights Reserved. |