0
我想要這樣的:隱藏文件夾或路徑CSS與JS文件httacces
的.htaccess
# BEGIN
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /proyect/rewrite/
RewriteRule ^css/(.*) /proyect/rewrite/wp-content/$1
</IfModule>
# END
HTML文件
<!DOCTYPE html>
<html>
<head>
<!-- H1 COLOR BLUE -->
<link href="http://localhost/proyect/rewrite/wp-content/css/customjd.css" rel="stylesheet" type="text/css" >
<!-- H1 COLOR RED-->
<base href="/customjd.css" >
</head>
<body>
<h1>hello world!</h1>
</body>
</html>
但沒有任何反應。 h1不要改變它的顏色。
PD:內部文件夾wp-content存在customjd.css h1顏色爲紅色。
位置? – hjpotter92
@ hjpotter92 http:// localhost/proyect/rewrite/ – metalbox