Options +FollowSymLinks
RewriteEngine On # Turn on the rewriting engine
RewriteRule "^bar/(.*)$" "bar.php?sef_link=1ドル"
my htaccess rule is work but css, images and js files does not load.
when i look into source code, css file redirect :
localhost/css/style.css
but my css path is : localhost/night-rock/css/style.css
how can i fix this problem ?
i tried to add "/" before call css path :
<link href="/css/style.css" rel="stylesheet" type="text/css">
if i tried without "/" it search in:
http://localhost/night-rock/bar/css/style.css
asked Jan 19, 2016 at 15:39
Levent Tulun
7213 gold badges9 silver badges22 bronze badges
1 Answer 1
Try remove bar/ from your htaccess file.
Or if this folder does exists (/bar)..
Then add ../css to your HTML which will give it a relative path to the parent folder.
answered Jan 19, 2016 at 15:46
Pogrindis
8,3465 gold badges34 silver badges44 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
lang-html
<link href="css/style.css" rel="stylesheet" type="text/css"><link href="../css/style.css" rel="stylesheet" type="text/css">bar/from yourhtaccessor if this folder exists (/bar).. Then add../cssto yourHTML