WordPress.org

Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #20746, comment 45


Ignore:
Timestamp:
04/10/2018 07:12:45 AM (3 years ago)
Author:
ajoah
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20746, comment 45

    v2 v3  
    11I think it has not been said : there is a similare problem for subdomains multisite.
    22
    3 URL to a non existing php file inside a subfolder returns a 500 error.
     3URL to a non existing file inside a subfolder returns a 500 error.
    44
    55Examples :
     
    1111`example.com/wp-content/themes/non-theme/non-file.php`
    1212
    13 
    14 But no problem with other file extension :
     13With other file extension, it depends... :
    1514
    1615
    17 `example.com/non-dir/non-file.txt`
    18 `example.com/wp-content/themes/non-theme/non-file.txt`
     16`example.com/non-dir/non-file.txt` => returns 404
     17`example.com/wp-content/themes/non-theme/non-file.txt` => returns 500, i think it is the same problem as subfolders install
    1918
    20 These two urls return the 404 page of WP.
    21 
    22 Theses following urls return a 404 too but not the website 404 (just a 404 page with the text "File not found")
     19These following urls return a 404 too but not the website 404 (just a 404 page with the text "File not found")
    2320
    2421`example.com/wp-content/themes/non-file.php`
     
    2623
    2724
    28 
    29 If i delete this htaccess line, it works as it expected : no more 500 error but the 404 expected error.
    30 
    31 {{{
    32 RewriteRule ^(.*\.php)$ $1 [L]
    33 }}}
    34 
    3525WP 4.9.5