Forum Moderators: phranque

Message Too Old, No Replies

.htaccess redirect 301

         

fandangood

7:34 am on Apr 5, 2012 (gmt 0)

10+ Year Member



I have to delete some duplicate page with permanent redirects.
How can I do this through .htaccess?

Example

Redirect permanent from
mysite.com/directory/page100.htm?op11=0.00%3D0%23Num.+34+%28IT%29+*&qt1=1&op12=0.0 0%3D0%23Num.+38+%28IT%29+*&qt2=1&op13=0.00%3D0%23N um.+37+%28IT%29+*&qt3=1&op14=0.00%3D0%23Num
to
mysite.com/directory/page100.htm

Redirect permanent from
mysite.com/directory/page103.htm?op11=0.00%3D0%23Num.+36+%28IT%29+*&qt1=1&op12=0.0 0%3D0%23Num.+35+%28IT%29+*&qt2=1&op13=0.00%3D0%23N um.+35+%28IT%29+*&qt3=1&op14=0.00%3D0%233,5+UK+%28 IT36%29+*&qt4=1&op15=0.00%3D0%233,5+UK+%28IT36%29
to
mysite.com/directory/page103.htm

Redirect permanent from
mysite.com/directory/page116.htm?op13=0.00%3D0%23Num.+36+%28IT%29+*&qt1=1&op12=0.0 0%3D0%23Num.+35+%28IT%29+*&qt2=1&op13=0.00%3D0%23N um.+35+%28IT%29+*&qt3=1&op14=0.00%3D0%233,5+UK+%28 IT36%29+*&qt4=1&op15=0.00%3D0%233,5+UK+%28IT36
to
mysite.com/directory/page116.htm

Thanks a lot!

g1smd

7:49 am on Apr 5, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



There's 30 000 examples of the code needed for redirecting detailed in previous threads.

Let's see your attempt at some code. This forum exists as an educational service. There aren't enough volunteers to write your code for you.

lucy24

8:45 am on Apr 5, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Are you talking about those specific configurations, or do you want to delete all query strings? Everywhere, or from some specific pages?

Have you been to the assorted Webmaster Tools areas and told the assorted search engines which parameters to ignore?

The mechanics of dumping the query string may really be the smallest and simplest part of the problem.