View Single Post
Old 05-08-2018, 05:17 AM  
zerovic
Confirmed User
 
zerovic's Avatar
 
Industry Role:
Join Date: Apr 2010
Posts: 1,105
Hey man,

simply change the way you include your css file

instead of using this

<link rel="stylesheet" href="css/style.css">

add it like this, with a leading slash

<link rel="stylesheet" href="/css/style.css">

if you use it without the leading slash, it will use the current url displayed in the browser.. if you add the leading slash, it will use the root domain

if you still have troubles with it, add this to your .htaccess before the RewriteEngine On command

RewriteRule ^css - [L,NC]

this will completely ignore the css directory from any rewrite rule

ps. tested it, it works

if you can't make it work, feel free to contact me

cheers,
z
__________________
php, html, jquery, javascript, wordpress - contact me at contact at zerovic.com
zerovic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote