how to remove app.php from url?


Due to a lack of free time, both support on this forum and extension development are currently limited.
All bugs are noted and saved for fixes, even if there are no replies to the posts.
Normal activity will resume as soon as possible.
User avatar
Leinad4Mind
 
Posts: 226
Joined: Thu Oct 15, 2015 10:10 pm
 Mon Jun 26, 2023 2:48 pm • via Web
Hi there, I want to use blockgets on some extensions page. So I tried with Donations from sitesplat and it puts the url as app.php/donations when on ACP I've the option to hide the app.php.
no_avatar
mack69
 
Posts: 1
Joined: Thu Aug 03, 2023 3:21 pm
 Thu Aug 03, 2023 3:36 pm • via Web
To remove "app.php" from URLs, you can implement URL rewriting rules in your web server's configuration. For Apache, you can use mod_rewrite. Create a .htaccess file in your root directory and add the necessary rules. For example, you can use:

bash

RewriteEngine On
RewriteRule ^(.*)$ /app.php/$1 [L]

This will redirect all requests to app.php without showing it in the URL. However, ensure your application is properly configured for URL rewriting. Always back up your files before making changes. URL rewriting improves aesthetics and SEO, making URLs more user-friendly and easier to remember.
User avatar
Leinad4Mind
 
Posts: 226
Joined: Thu Oct 15, 2015 10:10 pm
 Thu Aug 03, 2023 6:37 pm • via Web
The problem comes from the extension itself, since there is an option at ACP to not use app.php.
no_avatar
Annika
 
Posts: 1
Joined: Thu Feb 29, 2024 4:59 am
 Thu Feb 29, 2024 6:06 am • via Web
Leinad4Mind wrote:Hi there, I want to use blockgets on some extensions page. So I tried with Donations from sitesplat and it puts the url as app.php/donations when on ACP I've the option to hide the app.php.

Think about calling the Donations support team at sitesplat to resolve the URL display issue caused by concealing "app.php" in the ACP.story saver
User avatar
Leinad4Mind
 
Posts: 226
Joined: Thu Oct 15, 2015 10:10 pm
 Thu Feb 29, 2024 2:24 pm • via Web
The problem I beleive is from blockgets. I guess I applied a fix back then, can't remember which file and what I did to fix.
no_avatar
natasha89
 
Posts: 1
Joined: Thu Jan 01, 2026 1:48 pm
 Thu Jan 01, 2026 1:50 pm • via Web
mack69 wrote:To remove "app.php" from URLs, you can implement URL rewriting rules in your web server's configuration. For Apache, you can use mod_rewrite. Create a .htaccess file in your root directory and add the necessary rules. For example, you can use:

bash

RewriteEngine On
RewriteRule ^(.*)$ /app.php/$1 [L]

This will redirect all requests to app.php without showing it in the URL. However, ensure your application is properly configured for URL rewriting. Always back up your files before making changes. URL rewriting improves aesthetics and SEO, making URLs more user-friendly and easier to remember.




Thank you for shareing a valuable information and very helpful content,lots of love.
bhulekh up
no_avatar
aero98
 
Posts: 1
Joined: Wed Feb 11, 2026 1:45 pm
 Wed Feb 11, 2026 1:48 pm • via Web
Remove app.php from the URL by enabling URL rewriting. Use .htaccess with mod_rewrite, set RewriteEngine On, redirect requests to index.php, and update your framework routing. Clear cache, restart server, and test links to ensure clean, SEO-friendly, user-friendly addresses everywhere properly.bihar bhumi

Who is online

Users browsing this forum: No registered users and 0 guests