Welcome to WebmasterWorld Guest from 54.144.68.27

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

301 Redirect (Help A Noob)

     

ChrisWilson

5:12 pm on Jun 22, 2011 (gmt 0)

5+ Year Member



Here is the scenario:

I am very unhappy with how my site returns results via the internal search, so while I tweek this, I was trying to take some of my most popular KW searches and direct them to the appropriate landing page.

I have yet to be able to get it to work

Here is an example query of the term widget
search.php?main_page=advanced_search_result&search_in_description=1&inc_subcat=1&keyword=widget&search.x=0&search.y=0


I would just like to redirect this to
http://blablabla.com/widget-landing-page.html


Yet it never works..

I tried :

Redirect 301 search.php?main_page=advanced_search_result&search_in_description=1&inc_subcat=1&keyword=widget&search.x=0&search.y=0 http://blablabla.com/widget-landing-page.html

g1smd

6:56 pm on Jun 22, 2011 (gmt 0)

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



The Redirect directive cannot see appended query string data.

Use RewriteRule with a preceding RewriteCond looking at the QUERY_STRING request variable.

You cannot ever redirect POST requests.

ChrisWilson

8:12 pm on Jun 22, 2011 (gmt 0)

5+ Year Member



Thanks, off to research RewriteRule =)
 

Featured Threads

Hot Threads This Week

Hot Threads This Month