문제

I have these in my Apache vhost

RewriteEngine on
RewriteCond %{QUERY_STRING}  ^highlight=WyJwb3J0YWwiLCJub3RpY2VzIiwicG9ydGFsIG5vdGljZXMiXQ==(&.*)?$ [NC]
RewriteRule ^component/k2/item/473-careers-portal-notices\.html$ /career-portal-notices.html?%1 [R=301,NE,NC,L]

However, when I hit site.com/component/k2/item/473-careers-portal-notices.html?highlight=WyJwb3J0YWwiLCJub3RpY2VzIiwicG9ydGFsIG5vdGljZXMiXQ== I do not get redirected to /carerr-portal-notices.html.

What do I need to change to make this redirection happen? And I've restarted Apache already.

도움이 되었습니까?

해결책

This is a Joomla site. Apparently the .htaccess file that comes with Joomla can override any rewrite rules you place in the vhost.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top