redirect query string Via htaccess

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    redirect query string Via htaccess

    hello guys currenty i m Learning Google ajax's crowling scheme
    now i got bit confused :P
    now
    In my app i m likey to use hash fragments like: mysite.com/#!widget=platform&pid=Xxx
    I understand google will fetch
    this url and make a request to
    the server in this form: mysite.com/?_escaped_fragment_=widget=platform&pid=xxx]oursite.com
    now i made a httacces to avoid using _escaped_fragment_ for every pages
    ex page?_escaped_fragment_
    search?_escaped_fragment_
    so i made a htacces file
    Code:
    RewriteEngine on
    RewriteCond %{QUERY_STRING} _escaped_fragment_=(.?)
    RewriteRule ^(.*)$ do.php$1 [R=302,QSA]
    but it does'nt redirect those string after _escaped_fragment_
    Last edited by shushant; 13.06.12, 07:51.

    #2
    try using redirect match instead mod_rewrite

    something like
    Code:
    RedirectMatch 301 ^/example/(.*)$ http://my.tld/$1
    This is ten percent luck, twenty percent skill
    Fifteen percent concentrated power of will
    Five percent pleasure, fifty percent pain

    And a hundred percent reason to remember the name!

    Comment

    Working...
    X