Forum Moderators: phranque
I am using a php powered directory that seems to produce duplications when I add an item to a category.
/category/
Then I add item this category and my XML sitemap generator oics up two URLs for the same page:
/category/part1/
and
/category/part1/?s=A&p=1
Any idea how to get rid of /?s=A&p=1
Thanks in advance,
Db
mod_rewrite can only help if your goal is to remove the duplicate URL from search engines a little faster.
If that is the goal, then see mod_rewrite's RewriteCond directive, and use it to check %{QUERY_STRING} with a rule that permanently redirects the "/category/part1/" URL-path.
Jim
Yes, I thought you might say that. I guess the sitemap generator views the site differently than a Google spider. I guess we will wait and see what G picks up.
I realy was looking for a quick fix rather than hacking the XML creator which with my skills would end up in tears!
Thanks again all the same,
Db