Nginx 重写 url 和 https 重定向

时间:2021-02-24 12:09:44

标签: nginx url-rewriting bitnami nginx-config nginx-location

所以我的问题是我需要该链接,因为 example.com/page/id/325 指向 example.com/home/page/index.php?id=325 以及所有在 https< 下工作的内容/strong> 规则。 用户看到第一个 url 很重要,这必须是一个隐藏的重定向。

我是 Nginx 的新手,所以我不明白错误在哪里。

这是我用来执行此操作的代码(不起作用)。

<header>
    <input type='text' placeholder='type here, page scrolls' />
</header>
<main>
    <article>
        <p><a href='#anchor-point'>click me to skip down to the lower section</a></p>
    </article>
    <article>
        <p>some useless text just to fill up vertical space and allow for scrolling</p>
    </article>
    <article>
        <p>some useless text just to fill up vertical space and allow for scrolling</p>
    </article>
    <div id='anchor-point'>
        I also want to link to here. This section should not get cut off by the sticky header. The entire thing should be visible.
    </div>
    <article>
        <p>some useless text just to fill up vertical space and allow for scrolling</p>
    </article>
    <article>
        <p>some useless text just to fill up vertical space and allow for scrolling</p>
    </article>
    <article>
        <p>some useless text just to fill up vertical space and allow for scrolling</p>
    </article>
</main>

附注。抱歉英语不好。

0 个答案:

没有答案