NuFu

Then maybe try adding one specifically for the subfolder with AllowOverride All, restart Apache, and retest.

Cheers.

KevinTheJedi Thanks for all your help. I asked my host and they spotted that the issue seems to come from the .htaccess rules in the /api folder. The following one:
RewriteRule .*$ %1/http.php/$1 [L]
Should only be:
RewriteRule .*$ %1/http.php/ [L]
This resolved my issue, however, I still have issues with emails not fetching or sending but thats for another thread ! thanks for all your help.

    sedwardson

    I use Apache and did not need to make any changes other than enabling URL Rewriting. Maybe your host has some weird routing issues or something?

    Cheers.

    With the solution of @sedwardson I got redirected to the root site of my osTicket instance but the OAuth has no Token. So not really a solution I guess.

    @"KevinTheJedi My provider ask which rewriting options are needed since they cannot set "All"

      cross-it

      The ones in all the .htaccess files in the codebase. There are a few so they can run a find command to see all the .htaccess files.

      Cheers.

      KevinTheJedi I agree, I'm just happy that I have the token and that part seems to work :-)
      Thanks again.

      Adrian85

      Yea if URL Rewriting isn't working you can hardcode http.php but you should really get URL Rewriting working as other parts of the helpdesk will need it too.

      Cheers.

      HI,
      Go the same problem. "No input file specified"
      Using a plesk basic installation on debian

        sedwardson Can you elaborate how you did this? My hosting provider stated that both "URL Rewriting" is enabled on this server and the "AllowOverride" directive is set to All. Yet still getting "No input file specified."

          My hoster has checked all the htaccess files and all needed functions are enabled according to him.
          What else can we do?

          voidsysadmin Can you elaborate how you did this? My hosting provider stated that both "URL Rewriting" is enabled on this server and the "AllowOverride" directive is set to All. Yet still getting "No input file specified."

          You might want to start your own thread.
          Include your setup information, what the issue is, etc.

          20 days later

          Hi there
          We've found a working solution with our provider. All ".htaccess" files needs to be edited like this:

          Old: RewriteRule .*$ %1/dispatcher.php/$1 [L]
          New: RewriteRule .*$ %1/dispatcher.php/$1 [R,L]

          this seems to work.

          regards
          Lukas

            cross-it

            Odd as I didn't make any changes and it works fine with Apache. But whatever works for you I guess.

            Cheers.

            a month later

            I was also concerned by the problem but I've just fixed it.:

            I was redirected to "404 Not Found" at the end of the Microsoft 365 Authentication process and not getting the token back into osTicket. It was on a freshly installed Apache2 server with no other config except the default + my vhost for osTicket.
            The problem was indeed coming from the rewriting rules in the api/.htaccess file that were getting ignored.

            I've just fixed the problem by doing two things:

            1. checking that the rewriteModule is enabled by using a2enmod rewrite command (it was actually already OK in my case).
            2. adding the following AllowOverride directive in my vhost configuration

            <Directory /var/www/support.mycompany.com/api>
            AllowOverride FileInfo
            </Directory>

            Please adjust the path to your context.
            Please note that the value "All" is not required. "FileInfo" is enought for the RewriteEngine according to apache2 documentation.

            18 days later

            I'm confused by your post. the .htaccess in /api reads:

            <IfModule mod_rewrite.c>
            
            RewriteEngine On
            
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteCond %{REQUEST_FILENAME} !-d
            RewriteCond %{REQUEST_URI} (.*/api)
            
            RewriteRule ^(.*)$ %1/http.php/$1 [L]
            
            </IfModule>

            So I am not real sure what you are telling us to edit.

            13 days later

            Hi All, Verify you have selected PHP 8.0x for your site - mine was set to 7.4.