OpenCart 웹 사이트를 www가 아닌 버전에서 www 버전으로 리디렉션하는 데 문제가 있습니다..htaccess 301 OpenCart로 리디렉션하는 문제
다른 사람들의 게시물에서 몇 가지 해결책을 시도했지만 모두 내 사이트에서 작동하지 않는 것 같습니다.
# SEO URL Settings
RewriteEngine On
RewriteBase/
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
이 적합합니다. 건배 – green4rrow