Welcome to WebmasterWorld Guest from 54.234.244.30

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Redirection Trouble

redirect a url with parameters

     
9:57 pm on Nov 19, 2009 (gmt 0)

Junior Member

5+ Year Member

joined:Aug 17, 2006
posts:61
votes: 0


Hi, hoping someone can help me with this.

Google recently indexed my home page a second time, but this time with a couple of parameters tacked on -- as www.my-domain.com/?s=

I'd like to redirect that back to www.my-domain.com/

I've tried many of the redirect suggestions on the forum, but nothing seems to work... I suspect I'm not coding the parameters in a way that can be understood.

Any ideas? I'm on Apache, and mod_rewrite is on.

Thanks!
Cary

12:49 am on Nov 20, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
posts:18903
votes: 0


It doesn't work because there is an error in your code.

I can't tell you what that error is, because you didn't post any code.

10:17 pm on Nov 20, 2009 (gmt 0)

Junior Member

5+ Year Member

joined:Aug 17, 2006
posts:61
votes: 0


Thanks,

I didn't post any because I've tried a few different pieces of code, and none of them worked. Thought I'd start from scratch if anyone had any ideas.

10:50 pm on Nov 20, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
posts:25430
votes: 0


Please post your best-effort code as a basis for discussion.

No code, nothing to discuss, and no starting point to work from. A review of our Forum Charter may prove helpful.

Plenty of examples in previous threads, too. Search WebmasterWorld for "RewriteRule clear query" if you prefer.

Jim

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members