I have a PHP web application on a Apache Web Server.
The path to to web application on the Server is: /var/www/html/intern/organisation/example_app
The URL to the web application is:
https://www.example.de/org1/intern/example_app/
I want, that all request, e.g. https://www.example.de/org1/intern/example_app/view1/ are redirected to
https://www.example.de/org1/intern/example_app/index.php On my local XAMPP Server I use following .htaccess file, that works for that purpose:
RewriteEngine On RewriteBase /example_app RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^.*$ index.php [L] But I have no idea, how that file should look like on the Server? I also use a httpd.conf on the server. I wondering, if that file interferes with the .htaccess file, that lies below: /var/www/html/intern/organisation/example_app/
Has anyone an idea how to config the rewriting on the Server?
.htaccessfile(s) located? Do you have multiple.htaccessfiles (in other directories)? The file-path and URL-path on the server don't appear to match? Do you have additional rewriting (orAlias) configured in the server config, or isexample_appin the file-path a different directory toexample_appin the URL-path?