WordPress 410仍重定向到主页

时间:2018-08-31 13:36:33

标签: .htaccess

我试图为每个包含com_k2的URL设置410,但是由于某种原因,即使410可以正常工作,它也会重定向到主页。

是否有任何方法可以强制每次默认410页(空白页)?

它是一个wordpress,这就是我在htaccess中所拥有的:

void Update () {
    Image image = GameObject.Find("Answer1").GetComponent<Image>();
    Image image2 = GameObject.Find("Answer2").GetComponent<Image>();
    Image image3 = GameObject.Find("Answer3").GetComponent<Image>();
    Image image4 = GameObject.Find("Answer4").GetComponent<Image>();
    if (randQuestion == -1)
    {
        randQuestion = Random.Range(0, 5);
    }

    if (randQuestion > -1)
    {
        GetComponent<Text>().text = questions[randQuestion];
    }

    if (choiceSelected == "y")
    {
        choiceSelected = "n";

        if (correctAnswer[randQuestion] == buttonSelected)
        {
            Debug.Log("Correct!");

            if (Answer1script.answerCorrect1 == "y")
            {
                image.color = Color.green;
            }

            if (Answer2script.answerCorrect2 == "y")
            {
                image2.color = Color.green;
            }

            if (Answer3script.answerCorrect3 == "y")
            {
                image3.color = Color.green;
            }

            if (Answer4script.answerCorrect4 == "y")
            {
                image4.color = Color.green;
            }
        }
    }
}

0 个答案:

没有答案