Author Topic: SEO URL and related empty redirect issues  (Read 2321 times)

0 Members and 1 Guest are viewing this topic.

Offline Naveen

  • Newbie
  • *
  • Posts: 43
    • View Profile
SEO URL and related empty redirect issues
« on: July 16, 2011, 07:27:43 PM »
Hi,

I have a modified 1.7.1 version of 4images script, I went on to delete near around 2500 images from the site. These pages were cache in google and followed. Now the problem is that, all these pages return an empty page rather than redirect to home page or give a 404 errors, it is affecting the site negatively.

I tried the same with random non existing  image ids and all of those return a empty page rather than a 404. I would like to get rid of all those empty redirect pages. Following is the htaccess code which needs to be modified, I believe.

http://www.domain.com/photos/img1001.htm and so on return empty pages.. (EDIT) Ok just found out that it works fine on IE but not on other browsers.

Code: [Select]
Options +FollowSymLinks
RewriteEngine on
#
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.domain\.com
RewriteRule (.*) http://www.domain.com/photos/$1 [R=301,L]

RewriteEngine On
#RewriteBase /
RewriteRule ^lightbox\.htm$ lightbox.php?%{QUERY_STRING}
RewriteRule ^lightbox\.([0-9]+)\.htm$ lightbox.php?page=$1&%{QUERY_STRING}

RewriteRule ^search\.htm$ search.php?%{QUERY_STRING}
RewriteRule ^search\.([0-9]+)\.htm$ search.php?page=$1&%{QUERY_STRING}

RewriteRule ^cat\.htm$ categories.php?%{QUERY_STRING}
RewriteRule ^cat([0-9]+)\.([0-9]+)\.htm$ categories.php?cat_id=$1&page=$2&%{QUERY_STRING}
RewriteRule ^cat([0-9]+)\.htm$ categories.php?cat_id=$1&%{QUERY_STRING}

RewriteRule ^img([0-9]+)\.htm$ details.php?image_id=$1&%{QUERY_STRING}
RewriteRule ^img([0-9]+)\.([a-zA-Z0-9]+)\.htm$ details.php?image_id=$1&mode=$2&%{QUERY_STRING}

RewriteRule ^postcard([a-zA-Z0-9]+)\.htm$ postcards.php?postcard_id=$1&%{QUERY_STRING}
RewriteRule ^postcard\.img([0-9]+)\.htm$ postcards.php?image_id=$1&%{QUERY_STRING}

RewriteRule ^sitemap.xml$ smp.php

Please do help as it is really important for me.
« Last Edit: July 16, 2011, 07:50:18 PM by Naveen »