homepage Welcome to WebmasterWorld Guest from 54.226.0.225
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Redirection Trouble
redirect a url with parameters
Dead_Elvis




msg:4028357
 9:57 pm on Nov 19, 2009 (gmt 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

 

g1smd




msg:4028448
 12:49 am on Nov 20, 2009 (gmt 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.

Dead_Elvis




msg:4029045
 10:17 pm on Nov 20, 2009 (gmt 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.

jdMorgan




msg:4029064
 10:50 pm on Nov 20, 2009 (gmt 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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved