Wordpress를 사용하여 & 루츠 사이트를 개발 중이므로 wp-content/themes/themename/assets/etc
을 assets/etc
으로 다시 작성하지만 작동하지 않습니다. .htaccess 하단에이 포함되어 있습니다 :.htaccess 다시 쓰기가 작동하지 않습니다.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteRule ^index\.php$ - [L]
RewriteRule ^assets/css/(.*) /wp-content/themes/retlehs-roots-e3f7365/assets/css/$1 [QSA,L]
RewriteRule ^assets/js/(.*) /wp-content/themes/retlehs-roots-e3f7365/assets/js/$1 [QSA,L]
RewriteRule ^assets/img/(.*) /wp-content/themes/retlehs-roots-e3f7365/assets/img/$1 [QSA,L]
RewriteRule ^plugins/(.*) /wp-content/plugins/$1 [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
나에게 잘 보입니까? 하지만 작동하지 않습니다, 그래서 내 서버 또는 파일 자체에 문제가 있습니까?
@MichaelBerkowski 글쎄, 그것은 404 오류가 발생합니다 . –
그래, 그게 내가 예상 한거야. 어떤 URL이 404로 인해 리디렉션되는지 보려면'[R = 301]을 추가하십시오. 브라우저 주소 표시 줄이 바뀌면 어디서나 볼 수 있습니다. –
@MichaelBerkowski'[R = 301] '어디? –