Apache에서 [301]을 리디렉션하지만 Joomla CMS에 필요한 다른 규칙이있는 데 대한 질문입니다.Apache 2.4에서 Joomla를 실행 한 후 이전 URL 리디렉션
우리는 Joomla 3로 웹 사이트를 다시 시작했습니다. 이전 버전은 다른 CMS였습니다. 이제 이전 URL을 새 위치로 리디렉션하고 싶습니다.
문제가 해결되지 않는 것 같습니다. 나는 우리의 모든 경우 (거의 300)에 맞는 해결책을 원합니다.
RewriteRule ^/index\.php\?CID=1$ http://%{HTTP_HOST}/ [R=301,L]
또는
RedirectMatch 301 ^/index\.php\?CID=1$/
경우 :
/index.php?CID=1 =>/
/index.php?CID=2&Kat=1$ =>/
/index.php?CID=3&Kat=2&PID=100 => /new/path
/old/path/file.extention => /new/file/path
/old/page.html => /new/page
/show_image.php?image=123456.jpg&text=Very%20Long%TEXT => /new/path/location
/show_image.php?image=654321.jpg&text=Very%20Long%TEXT => /other/path/location
내가 몇 가지의 RewriteRules처럼 이미 시도 : 여기
우리가 리디렉션 같은 몇 가지 예 (구 => 새을)입니다 일부 URL은 RedirectMatch 버전이 작동하지만 대부분은 그렇지 않습니다. 특별히 /index.php와 함께 표시되는 모든 URL이 아닙니다. 이것은 Joomla의 진입 점이기 때문에 e.Joomla RewriteRule이 활성화되기 전에 /index.php로 시작되면 구체적인 URL을 리디렉션 할 수 있습니까?
RewriteEngine이 켜져 있고 Joomla와 함께 제공되는 기본 htaccess로 작업 중입니다. SEF URL 및 URL 재 작성이 사용됩니다.
올바른 방향으로 몇 가지 힌트를주세요. 내가 솔루션 나 자신을 찾을 한편
<IfModule autoindex>
IndexIgnore *
</IfModule>
Options +FollowSymlinks
Options -Indexes
RewriteEngine On
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule .* index.php [F]
RewriteBase/
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L]