나는 그런 일이 있습니다ModRewrite과 URL이
htaccess로 :
RewriteRule ^news/?(\d+)/?$ /?pg=news&id=$1 [NC]
header.php :
<link rel="stylesheet" href="../theme/style.css" media="all" >
문제는 다음과 같은 : 내가 WWW에 갈 때 .domain.com/news/241style.css 파일의 "404 Not Found"오류가 발생합니다.
../theme/style.css
을 <?=HOST;?>/theme/style.css
으로 바 꾸었습니다. HOST
은 도메인 이름입니다. 그것을 더 잘하는 방법? 당신은 당신이 당신의 콘텐츠 디렉토리를 제외 규칙을 다시 앞의 재 작성 규칙을 포함 할 필요가
/theme/style.css