Problem with slash before query string in URLs

I am copying a working site to Local. All is now working OK except that where I do an internal link to a URL with a slash before the query string (eg …/sozi2.php/?T=Untitled…), I get an “Oops, This Page Could Not Be Found!”. If I change .php/?T to .php?T it all works fine.

This discussion implies that the slash is standard, and omitting the slash is allowed.

System Details

  • Local Version:
    Version 9.1.1+6738
  • Operating System (OS) and OS version:
    Windows 11

Local Logs

local-logs.zip (79.8 KB)

Hi @PeterC66!

A few quick things here you could check:

  • Try resaving Permalinks

  • Check if any plugin/theme caching can be flushed/css regenerated

  • Double check environment settings are a match to the hosting environment as far as server type, PHP, etc

Thanks. I’ve resaved permalinks, and flushed the caches. No change.
As far as I can see by looking a the Site Health info data the live and Local setups are similar except for (Local vs Live system)
imagick_module_version: 1808 vs 1809
server: Windows vs Linux
httpd_software: nginx vs Apache
php_sapi: cgi-fcgi vs fpm-fcgi
curl_version: 7.76.1 vs 8.1.2
database server_version: 8.0.16 vs 10.6.19-MariaDB-log

The links with .php/?.. were all set up by me several years ago (or are generated every time by my programs), and I thought this was the standard. Can I tell Local to ignore the slash?

So you’re using different server and database versions in Local than the live site?

httpd_software: nginx vs Apache
database server_version: 8.0.16 vs 10.6.19-MariaDB-log

Yes, I was just using the default setup. Now I have switched to Apache and the issue has gone away. Thanks.

1 Like

Glad to hear it @PeterC66! Thank you for following up to let us know.

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.