Author Topic: Redirect 302 auf Error 404 ändern  (Read 5281 times)

0 Members and 1 Guest are viewing this topic.

Offline beach-baer

  • Newbie
  • *
  • Posts: 20
    • View Profile
Redirect 302 auf Error 404 ändern
« on: July 26, 2007, 06:38:33 PM »
Moin Moin!

Ich habe hier schon ein wenig nach einer Lösung gesucht, habe auch einiges zum Thema gefunden, aber keine Lösung für mein Problem erblicken können.

Wenn ich eine Seite aufrufe, die es nicht mehr gibt (weil Bild gelöscht): z.B. http://www.minibild.de/images/image376.htm dann wird ein 302 also ein Redirect auf die index.php gemacht. Ich möchte aber gerne einen 404 haben (einige Sumas auch :-)). Wo muss ich da nun klickern um den 302 auszuschalten?

Bin für jeden Tipp dankbar. :D

Gruß Kay
« Last Edit: May 24, 2008, 08:23:15 PM by beach-baer »

Offline artmedia

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • Fotos de chicas
Re: Redirect 302 auf Error 404 ändern
« Reply #1 on: May 24, 2008, 03:58:30 AM »
Hello I got a question about it, i have delete some images, in some pages with good pagerank, but now when the search engines look for that pages there is a 302 temporary redirection to home page, but I want a 301 redirection in order to keep that pagerank of that deleted page, where can i change that 302 redirection?

PD: i want to that the server does not return a 404 code, because i will lost my pagerank, just the 301 redirection thanks so much!


Offline beach-baer

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Redirect 302 auf Error 404 ändern
« Reply #2 on: May 24, 2008, 08:51:25 PM »
Hello I got a question about it, i have delete some images, in some pages with good pagerank, but now when the search engines look for that pages there is a 302 temporary redirection to home page, but I want a 301 redirection in order to keep that pagerank of that deleted page, where can i change that 302 redirection?

PD: i want to that the server does not return a 404 code, because i will lost my pagerank, just the 301 redirection thanks so much!



Hi,

mein Englisch ist leider etwas eingerostet, von daher versuche ich es lieber in Deutsch.

Die vollständige URL für ein Bild lautet .../details.php?image_id=376. Der Suffix ?image_id=376 entspricht dem aufgerufen Foto. Wird das Bild gelöscht, fehlt also nur der Suffix. Der erste Teil, also .../details.php ist natürlich weiterhin vorhanden. Daher kommt kein 404 Code. Wenn Du das PR retten möchtest, wirst Du wohl vermutlich den Weg über eine .htaccess (Google) gehen müssen (For a 301 redirection you neet a .htaccess File?!)

Gruß Kay

Offline artmedia

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • Fotos de chicas
Re: Redirect 302 auf Error 404 ändern
« Reply #3 on: May 27, 2008, 12:51:52 AM »
Dude, i got your idea, i tried but when i did the redirection on my .htaccess

RewriteRule fotos_de_chicas/details\.php$ http://www.ticas.co.cr/fotos_de_chicas/index.php [R=301,L]

I got a big problem, no one image show its details, every image was redirected in this way:

/details.php?image_id=376 --->  /index.php?image_id=376 (The home page always, people cannot see every image details)

 I think will be better to find exactly the place where the 302 redirection is called, i guess is called from some function of details.php, but I don't know which one