#499 Posted in ‘Route 66’

Latest post by Lefteris Kavadas on Monday, 23 December 2019 11:49 EET

Pedro Horacio González
Hi,

When the "Redirects" is enabled, Route 66 redirects the matching links to the canonical links. However, it is also redirecting URLs with HTTP errors to the home.

I expect that "Redirects" respects the current HTTP error codes, instead of redirecting them. Please, confirm if this is a bug or expected behavior of the extension.

Case 1

https://my-domain.com/administrator/templates/isis/favicon.ico 403

When the "Redirects" is enabled, it redirects to: https://my-domain.com/administrator/templates/isis/favicon.ico 301 => https://my-domain.com

Case 2

https://my-domain.com/plugins/k2/mefgfork2/ajax.php?cid=34&id=&k2v=30 403

When the "Redirects" is enabled, it redirects to: https://my-domain.com/plugins/k2/mefgfork2/ajax.php?cid=34&id=&k2v=30 403 301 => https://editores.sisanjuan.gob.ar/?cid=34&k2v=30

Regards

Lefteris Kavadas
Hi,

Route 66 only works in front-end so I don't think that has anything to do with administrator favicon redirect.
Your second URL is a direct PHP file, it's outside Joomla so Route 66 (and any other plugin) is not running at all.

Please create a new private ticket and provide administrator credentials so I can have a look.

Regards

Pedro Horacio González
We use Route 66 only for K2 (com_k2). So, I fixed it in this way:

plugins/system/route66/route66.php, line 102

// Canonical and current URI should match. If not redirect
if (!$isAmp && $this->params->get('redirect', 1) && $current != JUri::root() && urldecode($current) != urldecode($canonical)

&& $vars['option'] === 'com_k2'

)

So, in some way, the visits are reaching these lines and redirecting.

Pedro Horacio González

I've just checked. We can't grant access to this site.

Pedro Horacio González

By the way, all 403s are redirected to the router. The web server doesn't find a resource so it routes the visit following the default path. Better if Router 66 only processes the hits that has rules for and leaves the rest to the default Joomla router.

Lefteris Kavadas
From your last reply is obvious that Route 66 has nothing to do with this issue. You need to setup your server correctly. A request to a non existing resource should return a 404 not a redirect.
If you want to keep this setup just disable Route 66 redirects from the options.

Regards

Note: An active subscription is required in order to get support for our paid extensions. For our free extensions, if you don't have an account, register and then submit your support request.  In case you just want to ask a question, you can also use the contact form .

Firecoders
Are you using our extensions? Please post a review at the Joomla extensions directory!
Post a review