.htaccess 需要为我的css创建假目录路径,但实际路径在服务器中执行

.htaccess 需要为我的css创建假目录路径,但实际路径在服务器中执行,.htaccess,osclass,.htaccess,Osclass,我需要通过右键单击我的网站并查看我的源代码来伪造用户查看页面源代码中的路径 例如 路呢http://miads.in/oc-content/themes/modern/style.css 到http://miads.in/pc-content/style/look/style.css. 我试着用htaccess写: <IfModule mod_rewrite.c> Options +FollowSymlinks RewriteEngine On RewriteRule ^oc-con

我需要通过右键单击我的网站并查看我的源代码来伪造用户查看页面源代码中的路径 例如 路呢http://miads.in/oc-content/themes/modern/style.css 到http://miads.in/pc-content/style/look/style.css.

我试着用htaccess写:

<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
RewriteRule ^oc-content/(themes)/(modern)/([a-z]+)\.(css)$ /pc-content/style/look/$4.$5 [L]
</IfModule>

但它不会更改查看器pointview source中的任何路径,在source中它会显示css文件的原始路径,但我的页面样式已消失,只剩下文本。

当然,您不能更改/伪造用户浏览器中已存在的url。简言之,你无法做到这一点。问题:你为什么要更改用户看到的内容?谢谢你的支持,不客气。如果你想要混淆内容,有很多方法。但请记住,浏览器中模糊的内容很容易被清除。只有懒惰或非技术用户不会对内容进行除臭。