need to create fake directory path for my css but actual path is executed in server

111 views Asked by At

I need to fake a path in view page source by user (by right clicking my website and seeing my source code) for example <link href="http://miads.in/oc-content/themes/modern/style.css" rel="stylesheet" type="text/css" /> and the path http://miads.in/oc-content/themes/modern/style.css to http://miads.in/pc-content/style/look/style.css.

I tried to write in 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>

But it does not change any path in viewer point(view source) and in source it shows the css file original path, but style of my page is gone and only text remains.

0

There are 0 answers