Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[ticket/17590] Use index.php as frontend controller #6916

Open
rubencm wants to merge 1 commit intophpbb:masterphpbb/phpbb:masterfrom
rubencm:ticket/17590rubencm/phpbb:ticket/17590Copy head branch name to clipboard
Open

[ticket/17590] Use index.php as frontend controller #6916
rubencm wants to merge 1 commit intophpbb:masterphpbb/phpbb:masterfrom
rubencm:ticket/17590rubencm/phpbb:ticket/17590Copy head branch name to clipboard

Conversation

@rubencm
Copy link
Member

@rubencm rubencm commented Dec 26, 2025

Checklist:

  • Correct branch: master for new features; 3.3.x for fixes
  • Tests pass
  • Code follows coding guidelines: master and 3.3.x
  • Commit follows commit message format

Tracker ticket:

https://tracker.phpbb.com/browse/PHPBB-17590

@rubencm rubencm marked this pull request as draft December 26, 2025 19:33
@rubencm rubencm changed the title Ticket/17590 [ticket/17590] Use index.php as frontend controller Dec 26, 2025
@rubencm rubencm marked this pull request as ready for review January 20, 2026 20:18
@rubencm rubencm force-pushed the ticket/17590 branch 4 times, most recently from 5141fb5 to 5e5e370 Compare January 21, 2026 00:24
@rubencm rubencm requested a review from Copilot January 21, 2026 00:25
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request implements a change to use index.php as the frontend controller instead of app.php throughout the phpBB codebase. This is a significant refactoring that affects routing, installation, configuration files, and tests.

Changes:

  • Renamed frontend controller from app.php to index.php across all routing and path handling code
  • Updated web server configuration files (.htaccess, web.config, nginx, lighttpd) to route through index.php
  • Added backward compatibility redirect in app.php to redirect to index.php with 301 status
  • Updated installer to use index.php as entry point, removing the HTML redirect file
  • Updated all test cases to use index.php instead of app.php

Reviewed changes

Copilot reviewed 47 out of 48 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
phpBB/app.php Added 301 redirect for backward compatibility from app.php to index.php
phpBB/.htaccess Updated rewrite rules to use index.php instead of app.php
phpBB/web.config Updated IIS rewrite rules to use index.php
phpBB/phpbb/routing/router.php Updated regex to strip index.php from pathinfo
phpBB/phpbb/routing/helper.php Updated route generation to use index.php, modified admin path handling logic
phpBB/phpbb/path_helper.php Updated path manipulation logic to handle index.php, replaced string functions with modern alternatives
phpBB/phpbb/members/controller/online.php Updated session page parsing to strip index.php
phpBB/phpbb/install/module/obtain_data/task/obtain_server_data.php Updated comment to reference index.php
phpBB/phpbb/feed/helper.php Updated attachment URL pattern to match index.php
phpBB/install/index.php New installer entry point file (replaces index.html redirect)
phpBB/install/index.html Removed HTML redirect file
phpBB/install/startup.php Updated comment to reference index.php
phpBB/includes/functions.php Updated install redirect to point to install/index.php
phpBB/includes/acp/acp_update.php Updated update links to use install/index.php
phpBB/includes/acp/acp_board.php Updated comments about mod_rewrite to reference index.php
phpBB/language/en/acp/board.php Updated language string explaining mod_rewrite behavior
phpBB/docs/*.conf Updated all sample server configuration files
phpBB/docs/INSTALL.html Updated installation documentation to reference index.php
phpBB/config/default/routing/routing.yml Updated routing configuration comment
phpBB/assets/javascript/installer.js Updated installer JavaScript to look for index.php
vagrant/after.sh Updated comment in setup script
tests/**/* Updated all test files to use index.php instead of app.php (29 test files)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

phpBB/app.php Show resolved Hide resolved
phpBB/phpbb/path_helper.php Outdated Show resolved Hide resolved
phpBB/phpbb/routing/helper.php Show resolved Hide resolved
@marc1706 marc1706 added this to the 4.0.0-a2 milestone Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.