I wish to change the image and css paths on my website depending on whether it is accessed by domain or IP.
So for example if the user access the site at www.domain.com
the image and css path is /assets/img/ and /assets/css/
But if they access it at 192.60.60.60 they get
/assets/img_v2/ and /assets/css_v2/
Is this possible, any ideas?
is it something like:
- Code: Select all
RewriteCond %{REMOTE_ADDR} 192.60.60.10
RewriteRule /assets/img/(\*)$ /assets/img_v2/$1 [L]