hello i am new to osticket
comming from GLPI i was looking for a simple ticketing system for my clients.
i am runing windows server 2025 whit apache24 php an mysql data base.
osticket server is beind apache reverse proxy on a separate VM.
everyting works find but i am having hard time hiding the .php extention.
any one can help me whit this.
i try use :

RewriteEngine On

Redirect "/file.php" to "/file"

RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+).php [NC]
RewriteRule ^ %1 [R=301,L]

Internally rewrite "/file" back to "/file.php"

RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule .*?/?$ $1.php [NC,L]

but the page is no longer accessible.

  • KevinTheJedi replied to this.
  • christoff

    That's because legacy is simply not built like that. Natively, it relies on the full file paths. This is changing in v2.0 though to "pretty URLs", so stay tuned. If you wanted it before v2.0 then you would need to add the functionality to the codebase (and/or your webserver) yourself. You can look at guides online on how to create proper Rewrite Rules, etc. We do not assist with customizations as you are deviating from core. The code is open source and publicly available on Github. Github has a great search tool and a cool code tree/glossary feature. You will proceed at your own risk. Good luck!

    Cheers.

    christoff

    That's because legacy is simply not built like that. Natively, it relies on the full file paths. This is changing in v2.0 though to "pretty URLs", so stay tuned. If you wanted it before v2.0 then you would need to add the functionality to the codebase (and/or your webserver) yourself. You can look at guides online on how to create proper Rewrite Rules, etc. We do not assist with customizations as you are deviating from core. The code is open source and publicly available on Github. Github has a great search tool and a cool code tree/glossary feature. You will proceed at your own risk. Good luck!

    Cheers.

    i think i will wait for v2.0
    rite now it is working so i will leave it like that.
    thank you.

    Best regards.

    Write a Reply...