htaccess redirect help

Discussion in 'Apache' started by Divvy, Sep 7, 2018.

  1. #1
    Hello guys,

    I'm trying to fix URL errors in my Google Webmaster Tools but I'm having trouble redirecting URLs with strings.

    URLs that I need to fix:

    domain.com/?p=8138
    to
    domain.com/page

    I tried:
    Redirect 301 /?p=8138 https://domain.com/page
    
    But is opening https://domain.com/page/?p=8138
    Code (markup):
    ---

    domain.com/video/name?mrpage=1
    to
    domain.com/videos

    I tried:
    Redirect 301 /video/name?mrpage=1 https://domain.com/videos
    
    But is opening https://domain.com/videos?mrpage=1
    Code (markup):
    ---

    domain.com/name/name/
    to
    domain.com/page

    I tried:
    Redirect 301 /inteens/inteens https://domain.com/page
    
    But is opening https://domain.com/page/name
    Code (markup):
    ---

    https:/domain.com/
    to
    domain.com

    Ok, this one is weird, but GWT is showing this URL: https://domain.com/https:/domain.com/
    Code (markup):
    Can someone please help me?

    Thank you in advance.
     
    Divvy, Sep 7, 2018 IP