[removed] in .htaccess causes 500 server error (Redirect to non-URL)

后端 未结 4 536
孤独总比滥情好
孤独总比滥情好 2021-01-05 04:28

have such kind of error.

When adding Redirect 301 rule to .htaccess file like:

Redirect 301 \"/page1.html\" \"/dir1/\"
         


        
4条回答
  •  一生所求
    2021-01-05 05:02

    For me, I had the exact same issue. Adding "http://domain.com" in front of "/mypage" worked; I am still testing to get it to work without, as is does on my production server. So my .htaccess on my local testing environment, went like this:

    BROKEN: Redirect 301 /mypage /directory1/sub-directory/mypage/

    FIXED: Redirect 301 http://mydomain.com/mypage http://mydomain.com/directory1/sub-directory/mypage/

提交回复
热议问题