0
나는 Wordpress에서 Statamic으로 이동 중이다. 내 Statamic 사이트는 .htaccess 파일이 필요하며 매핑을 시도 할 때까지 모든 것이 잘 작동합니다.Wordpress 301 리다이렉트 .htaccess borks 내 사이트
내 이전 URL은 thedalzells.org/2014/08/post-title이었고 새 항목은 thedalzells.org/blog/post-title입니다. 나는 아무것도 내 사이트에서 작동하지 그렇게한다면
# Turn on the Rewrite Engine
RewriteEngine On
# If you're running in a subfolder (like http://example.com/statamic),
# add that here. E.g. /statamic/
RewriteBase/
# Protect your system files from prying eyes
RewriteRule ^(_app) - [F,L]
RewriteRule ^(_config) - [F,L]
RewriteRule ^(_cache) - [F,L]
RewriteRule ^(_content) - [F,L]
RewriteRule ^(_logs) - [F,L]
RewriteRule ^(admin/themes/[^/]*/(?:layouts|templates)) - [F,L]
RewriteRule ^(.*)?\.yml$ - [F,L]
RewriteRule ^(.*)?\.yaml$ - [F,L]
RewriteRule ^(.*/)?\.git+ - [F,L]
# This will prevent all .html files from being accessed.
# You may want to remove this line if you want to serve
# static files outside of Statamic
RewriteRule ^(.*)?\.html$ - [F,L]
# Remove trailing slashes from your URL
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\/(\?.*)?$ $1$2 [R=301,L]
# Redirect from old URLS
RewriteRule /\d{4}/\d{2}/(.*) $1 [R=301, L]
# Remove the index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L]
: Removing date from url using .htaccess에서
나는이를 만들었습니다. 도와주세요!