Hello,
I am currently running into an issue on my OSTicket install. I am attempting to remove the .php from the end of links, and I have successfully done this using the .htaccess file that can be found below:
Options +FollowSymLinks -MultiViews
Turn mod_rewrite on
RewriteEngine On
RewriteBase /
To externally redirect /dir/foo.php to /dir/foo excluding POST requests
RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+).php [NC]
RewriteRule ^ %1 [R=302,L,NE]
To internally redirect /dir/foo to /dir/foo.php
RewriteCond %{REQUEST_FILENAME}.php -f [NC]
RewriteRule ^ %{REQUEST_URI}.php [L]
However, upon doing this, I get some errors when trying to open up pop ups, or open up ticket forms:
"Mixed Content: The page at 'https://xxxxx.net/help/open' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://xxxxx.net/help/ajax'. This request has been blocked; the content must be served over HTTPS."
I am unsure as to why this is occurring. If I remove my rewrite rules in .htaccess it works fine so it must be an issue with that. How would I go about fixing this?
Thank you!