Jump to content

Redirects in email links causing issues.


Go to solution Solved by Stuart Silvester,

Recommended Posts

Hello,

We are seeing an issue with the links provided in emails containing redirects that ultimately produce an error of "imperialgunners.com redirected you too many times." when opened. 

Here is an example of one of these links:
https://imperialgunners.com/forums/index.php?app=core&module=system&controller=redirect&url=https://imperialgunners.com/forums/index.php?/messenger/10346/%26do=findComment%26comment=11764&key=6d66362e736d1102e13d241d8c9390cbf3fa44d27bfa45923404cbec8d7c933b&email=1&type=notification_new_private_message

I do have an HTTP to SSL redirect in htaccess for the forums, but it didn't use to cause this problem. Please let me know what I should look into. Thanks!

Link to comment
Share on other sites

The software itself will use whatever URL is specified in your conf_global.php file.  If it has https in it, https will be used.  

I would suggest you look at your .htaccess file and see if you have anything in it that is doing a redirect.   You might also need to look at any 3rd party resources you have installed to see if any of them are introducing any sort of unintended redirects that are not in the base software itself or interfering with the base software.  

Edited by Randy Calvert
Link to comment
Share on other sites

Hi. This is the extent of our .htaccess file:

RewriteEngine on
Redirect 302 /index.html https://imperialgunners.com/forums
Redirect 302 /index.htm https://imperialgunners.com/forums
Redirect 302 /index.php https://imperialgunners.com/forums

RewriteRule     "^/images_old/$"        "/images_new/" [PT]

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php80” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php80___lsphp .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
 

Link to comment
Share on other sites

Just to add a comparison between to the sites I manage. Here's an example of the email link back to a new PM on the affected system:

https://imperialgunners.com/forums/index.php?app=core&module=system&controller=redirect&url=https://imperialgunners.com/forums/index.php?/messenger/10287/%26do=findComment%26comment=11672&key=4e92cfb69eef43d19472de2a3a6882e51ab1f19d1e8fca6582c0f0e7eb5c0364&email=1&type=notification_new_private_message
 

And here's one from a healthy system:
http://www.southerncaliforniagarrison.com/forums/index.php?/messenger/23310/&do=findComment&comment=53250

Do you have any ideas why the app, module, controller, redirectURL, and other various items are in the first link and not the second one? Did we accidently enable an advanced or debugging feature without realizing it?

Link to comment
Share on other sites

Hi. All redirects from HTTP to HTTPS have been removed. The only redirects still in play are for moving queries from /index.html to our forums subdirectory. The problem is still persisting. 

After looking around in the admin panel, I noticed that the links are not in friendly URL format. I tried resetting these but that did not change anything. 

Link to comment
Share on other sites

20 minutes ago, SouthernCaliforniaGarrison said:

Hi. All redirects from HTTP to HTTPS have been removed. The only redirects still in play are for moving queries from /index.html to our forums subdirectory. The problem is still persisting. 

After looking around in the admin panel, I noticed that the links are not in friendly URL format. I tried resetting these but that did not change anything. 

You will want to remove all redirects 🙂 . While I understand what you're saying here and that these should only be limited to index.html, the reality is we need to remove all external factors which may be playing on the software at present so we can investigate this further. You can re-instate that after our investigation concludes.

Link to comment
Share on other sites

I've tested out the links in the previous emails, and a couple of new ones, and we're no longer seeing the error, so that at least gets that aspect of the site working again. Thank you!

I would still like to figure out why the true links aren't being sent in the emails, though. For example, the email contains this link:

https://imperialgunners.com/forums/index.php?app=core&module=system&controller=redirect&url=https://imperialgunners.com/forums/index.php?/topic/2038-request-for-igc-deployment/%26do=findComment%26comment=61385&key=7d1e9bd543ceebbe549fa0625bbf561baf0430c34f33849d6850fc9e4e2220bf&email=1&type=notification_new_comment

But becomes this in the browser after clicking on it:

https://imperialgunners.com/forums/index.php?/topic/2038-request-for-igc-deployment/page/33/#comment-61385

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...