Well, I couldn't leave it alone, but the command (edited for brevity):/bin/sed -i "/SYNOLOGY-REDIRECT/d" index.phpdeletes a line with "SYNOLOGY-REDIRECT" in index.php and writes the file back to itself.  I guess this didn't work with my installation, but obviously somebody somewhere (Synology) is modifying files.  Therefore the statement from Matt at Synology: "...nor are there any updates that would modify user files..." is incorrect.  I don't know why they, or anybody, can't just say: "We did that, it didn't work, now let's try to get it fixed."

@[deleted] Thanks a ton for tracking this down and posting your findings. I'd be lost (and my osTicket would still be broken) without your assistance. I'll share the info about the upload/include/upgrader/done.inc.php file and perhaps finally convince Synology that THEIR code contributed to the problem so that they can address the bug.

So I guess this fixed your URL rewrite to IP problem you were originally having?  Glad I could help.  I'm truly a noob at this linux stuff. I learn just enough to fix my current problem, then immediately forget it!  That's why I've been using osTicket to catalog a lot of my IT solutions because I can't remember things like I did in my 30's.  I've written some PHP but am by no means an expert as per my previous posts. We got two birds since I was trying to fix a different problem than yours.  My search just led me to this discussion thread and the one poster who had the exact same problem I was having.  I'm not using a URL but I guess the "Redirection" phrase in the title caught my attention.Thanks for following up with Synology.  Hopefully they will get it straight.PS. How do you tag a person in these discussions like you did me (@dmitchell) in your reply?

@[deleted] works, just type the @ symbol followed by the username.

I'm just checking back in on this thread and noticed what may be the source cause of the problem and the solution. Thanks to everyone who worked on this. I will give the fix a test drive and see if that fixes it for me. 

6 years later

fzs122
Check the Apache configuration on your Synology Diskstation. Look for any specific rules or directives related to URL rewriting. Verify that the configuration allows for the desired URL structure and doesn't interfere with the osTicket system's handling of URLs.

Write a Reply...