1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Redirect URL with question mark

Discussion in 'Black Hat SEO' started by mahamad3, Nov 11, 2012.

  1. mahamad3

    mahamad3 Regular Member

    Joined:
    Apr 26, 2012
    Messages:
    313
    Likes Received:
    26
    Location:
    Cairo
    Hello

    I need to redirect this link

    mydomain. com/eski/index. php?option=com_content&view=article&id=41&Itemid=177

    to this one

    mydomain. com/eski/yeni


    When I do that with redirect 301 it doesn't effect.

    I read that URL with question mark need a special code in htaccess to redirect it.

    The website running with Joomla.

    Could you help please
     
  2. mahamad3

    mahamad3 Regular Member

    Joined:
    Apr 26, 2012
    Messages:
    313
    Likes Received:
    26
    Location:
    Cairo
    It's worked great

    I don't know how to thank you !

    I was searching about it from yesterday and had no success.

    Really many thanks.
     
  3. drogon

    drogon Elite Member Premium Member

    Joined:
    May 28, 2010
    Messages:
    2,107
    Likes Received:
    1,004
    i didnt quite get this as i have thesame problem. Any idea how i redirect: mydomain.com/?page=1

    Tried the below but does not work:

    RewriteCond %{HTTP_HOST} ^mydomain\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.mydomain\.com$
    RewriteRule ^?page\=1$ "http\:\/\/www\.mydomain\.com\/" [R=301,L]

    Thanks.