.htaccess 删除URL[HTACCESS]中的目录

.htaccess 删除URL[HTACCESS]中的目录,.htaccess,.htaccess,我正在我的.htaccess文件中使用这个 Redirect /index.html http://jurrasicgames.net/JurrasicGamesDatFile/Index.html Redirect /VIP.html http://jurrasicgames.net/JurrasicGamesDatFile/VIP.html Redirect /sg.html http://jurrasicgames.net/Soon.SHMTL Redirect /kitpvp.html

我正在我的.htaccess文件中使用这个

Redirect /index.html http://jurrasicgames.net/JurrasicGamesDatFile/Index.html
Redirect /VIP.html http://jurrasicgames.net/JurrasicGamesDatFile/VIP.html
Redirect /sg.html http://jurrasicgames.net/Soon.SHMTL
Redirect /kitpvp.html http://jurrasicgames.net/JurrasicGamesDatFile/kitpvp.html

我想看看有什么方法可以做到这一点吗?

不要使用
重定向
指令,因为它会执行完全重定向。改用内部重写

.htaccess在站点根目录中使用(高于JurrasicGamesData文件的级别)


测试之前,请确保清除浏览器缓存。

不要使用
重定向
指令,因为它会执行完全重定向。改用内部重写

.htaccess在站点根目录中使用(高于JurrasicGamesData文件的级别)


在测试之前,请确保清除浏览器缓存。

它不再指向我的页面。它是否向您显示404?您在浏览器中输入的URL是什么?它不再指向我的页面。它是否向您显示404?您在浏览器中输入的URL是什么?
RewriteEngine On

RewriteRule ^index\.html$ JurrasicGamesDatFile/Index.html [L,NC]
RewriteRule ^VIP\.html$ JurrasicGamesDatFile/VIP.html [L,NC]
RewriteRule ^sg\.html$ Soon.SHMTL [L,NC]
RewriteRule ^kitpvp\.html$ JurrasicGamesDatFile/kitpvp.html [L,NC]