Important: This page is using cookies (cookies). Using this website without turning off cookies in browser, means that you agree for using it.
Buy Now! Features Downloads

Earn with us!

If you would like to start earning money with vBET join to Affiliate Program.
Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Bad redirect

  1. #11
    Senior Member
    Join Date
    Feb 2010
    Posts
    210

    Default

    How can I 301 redirect all query strings with "?hl=t" to my forum root please?

  2. #12
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    Put this rule before the others:
    Code:
    RewriteCond %{QUERY_STRING} hl=(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)
    RewriteRule ^(.*)$ http://%{HTTP_HOST}/forums/ [L,R=301]
    Please test it!

  3. #13
    Senior Member
    Join Date
    Feb 2010
    Posts
    210

    Default

    I DO NOT want to redirect all those urls, I WANT to redirect ONLY query strings with ?hl=t to my root.

    I dont not want to rediret the old mod urls to the root, i am happy redirecting them to the new mod folder urls.

    I dont think you are understanding the problem.
    Last edited by Snake; 14-03-10 at 21:41.

  4. #14
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    Sorry for confusion. It is obviously my fault - I miss this detail. Please use this rule before other rules (test it):
    Code:
    RewriteCond %{QUERY_STRING} hl=t
    RewriteRule ^(.*)$ http://%{HTTP_HOST}/forums/ [L,R=301]
    This one will redirect all requests with ?hl=t to your forum root. If you want redirect to root of your whole service, then remove /forums from rule
    Once again sorry for misleading

Page 2 of 2 FirstFirst 12

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •