2

Trying to eliminate some duplicate urls. Currently I will get links like:

http://www.domain.com/item/2013/05/testing-title-example/catid/175

But its also created as:

http://www.domain.com/item/2013/05/testing-title-example/

I need to simply remove the /catid/# from all urls and be google friendly rewrites/redirects. Any suggestions?

1

1 Answer 1

2

You just need a simple 301 rule like this code:

Options +FollowSymlinks -MultiViews RewriteEngine On RewriteBase / RewriteRule ^(.+)/catid/ /$1 [R=301,L,NC] 

R=301 (permanent redirect) will tell search bots to cache the new URL.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.