Google doesn't index/cache/display rewritten URLs.

New to mod_rewrite? This is a good place to start.

Google doesn't index/cache/display rewritten URLs.

Postby nextweekvacations » Mon Jun 01, 2009 3:11 pm

Hi Folks

I've successful rewritten URLs but google isn't showing the rewritten URLS. This is evident if you goto google and do site:nextweekvacations.com.

this is old style

http://www.nextweekvacations.com/100824 ... on_details

new style

http://www.nextweekvacations.com/North- ... 01569.html

Also my site is showing that it's serving up almost all pages with a 302 code.

Here's my htaccess:

Options +FollowSymLinks
RewriteEngine on

RewriteRule Vacation-Rental-Special-(.*)-(.*)\.html auction_details.php?name=$1&auction_id=$2
RewriteRule Last-Minute-Vacation-Rentals-(.*)\.html categories.php?parent_id=$1




RewriteRule ^(.*),(.*)$ $2.php?rewrite_params=$1&page_url=$2

RewriteCond %{QUERY_STRING} base64_encode.*(.*) [OR=301]
RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|[|%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|[|%[0-9A-Z]{0,2})
RewriteRule ^(.*)$ index.php [F,L]
nextweekvacations
 
Posts: 1
Joined: Mon Jun 01, 2009 3:05 pm

Postby richardk » Tue Jun 02, 2009 10:44 am

How long has it been?
Did you set up redirects for the old URLs?

It's almost certainly not because of mod_rewrite, it's just because you have changed the URLs.

Code: Select all
Options +FollowSymLinks

RewriteEngine on

RewriteCond %{QUERY_STRING} base64_encode.*(.*) [NC,OR]
RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|[|%[0-9A-Z]{0,2}) [NC,OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|[|%[0-9A-Z]{0,2}) [NC]
RewriteRule .* - [F,L]

RewriteRule ^.+-Vacation-Rental-Special-(.+)-([0-9]+)\.html$ /auction_details.php?name=$1&auction_id=$2 [QSA,L]
RewriteRule ^.+-Last-Minute-Vacation-Rentals-([0-9]+)\.html /categories.php?parent_id=$1 [QSA,L]

RewriteRule ^(.*),(.*)$ /$2.php?rewrite_params=$1&page_url=$2 [QSA,L]
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 89 guests

cron