.htacess 隐藏真实 URL

时间:2021-06-28 23:26:50

标签: php url hide

我有这个网址

https://site.test/public/vendedor/stores

我需要它可以通过这个 URL 访问(注意它也可以通过旧的访问)

https://site.test/public/vendedor/tienda (目前如果我输入这个网址,它不存在,并且会出现 404 错误)

此外,我需要地址栏中的 url 是新的,而不是更改为旧的。

简而言之,我想通过新网址显示旧网址的内容。不管是通过代理还是类似的东西。

我目前有此代码,但它似乎不起作用

RewriteRule ^public/vendedor/tienda/?$ public/vendedor/stores [NC,L]

我没有上传我的 .htaccess 文件,因为它是空白的。

我使用 Laravel

0 个答案:

没有答案