Question

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.

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top