Jump to content

Google Indexing Wrong URL's - .htaccess


ncovill

Recommended Posts

I am severely confused by this... I have made a bunch of mod_rewrites in my .htaccess and they work perfectly. I have all the links on my site point to the search engine friendly rewritten links and what not. For some reason, each new post made, Google indexes the old "/postdetails.php?id=##" link instead of the new "/category/id#" link. Below is part of my .htaccess:

 

RewriteRule ^page=([0-9_-]*)$ /index.php?currentpage=$1
RewriteRule ^index.php/page=([0-9_-]*)$ /index.php?currentpage=$1

RewriteRule ^([a-zA-Z0-9_-]+)/page=([0-9_-]*)$ /pages.php?action=get_entries&cat_id=$1&currentpage=$2 [L]
RewriteRule ^([a-zA-Z0-9_-]+)$ /pages.php?action=get_entries&cat_id=$1 [L]

RewriteRule ^([a-zA-Z0-9_-]+)/([0-9_-]+)$ /postdetails.php?cat=$1&id=$2 [L]

 

Any help would be greatly appreciated as this has been eating at me for a bit!

Link to comment
Share on other sites

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.