Url rewrite is working
I am getting an error when installing Hubzilla. This has never happened before, and I am installing it on a server with multiple Hubzilla installations under different domain names. I am not sure why it worked for all of the other websites, but not this one.
Url rewrite in .htaccess is not working.
Check your server configuration.Test: array ( 'return_code' => 404, 'success' => false, 'header' =>
'HTTP/1.1 404 Not Found Date: Thu, 21 Nov 2024 06:45:58 GMT
Server: Apache X-Request-ID: Zz7XJqCCg22WoiruJ69B6QAAACA Content-Length: 315 Content-Type: text/html; charset=iso-8859-1 ', 'body' => '
Not Found
The requested URL was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
', 'error' => '', 'debug' => array ( 'url' => 'https://techsero.com/setup/testrewrite',
'content_type' => 'text/html; charset=iso-8859-1', 'http_code' => 404, 'header_size' => 188,
'request_size' => 147, 'filetime' => -1, 'ssl_verify_result' => 0, 'redirect_count' => 0,
'total_time' => 0.12038300000000000389288601354564889334142208099365234375,
'namelookup_time' => 9.000000000000000228007716873701582471767324022948741912841796875E-6,
'connect_time' => 0.03672999999999999876099110451832530088722705841064453125,
'pretransfer_time' => 0.07983400000000000218403073404260794632136821746826171875,
'size_upload' => 0.0, 'size_download' => 315.0, 'speed_download' => 2625.0,
'speed_upload' => 0.0, 'download_content_length' => 315.0, 'upload_content_length' => -1.0,
'starttransfer_time' => 0.12037599999999999689226370946926181204617023468017578125,
'redirect_time' => 0.0, 'redirect_url' => '', 'primary_ip' => '66.115.170.90',
'certinfo' => array ( ), 'primary_port' => 443, 'local_ip' => '69.167.171.190',
'local_port' => 52596, 'http_version' => 2, 'protocol' => 2, 'ssl_verifyresult' => 0,
'scheme' => 'HTTPS', 'appconnect_time_us' => 79796, 'connect_time_us' => 36730,
'namelookup_time_us' => 9, 'pretransfer_time_us' => 79834, 'redirect_time_us' => 0,
'starttransfer_time_us' => 120376, 'total_time_us' => 120383,
'request_header' => 'GET /setup/testrewrite HTTP/1.1 Host: techsero.com User-Agent: Mozilla/5.0 (compatible; zot) Accept: */* Accept-Encoding: deflate, gzip, br ', ),
'request_target' => 'get /setup/testrewrite', )
The .htaccess file has the same code as the rest of the websites:
Options -Indexes
AddType application/x-java-archive .jar
AddType audio/ogg .oga
#SSLCipherSuite HIGH:AES256-SHA:AES128-SHA:RC4:!aNULL:!eNULL:!EDH
# don't allow any web access to logfiles, even after rotation/compression
Require all denied
Order deny,allow
Deny from all
RewriteEngine on
# Protect repository directory from browsing
RewriteRule "(^|/)\.git" - [F]
RewriteRule "(^|/)store" - [F]
# Rewrite current-style URLs of the form 'index.php?q=x'.
# Also place auth information into REMOTE_USER for sites running
# in CGI mode.
RewriteCond %{REQUEST_URI} ^/\.well\-known/.*
RewriteRule ^(.*)$ index.php?q=$1 "[E=REMOTE_USER:%{HTTP:Authorization},L,QSA,B= ?]"
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 "[E=REMOTE_USER:%{HTTP:Authorization},L,QSA,B= ?]"
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php82” package as the default “PHP” programming language.
AddHandler application/x-httpd-ea-php82 .php .php8 .phtml
# php -- END cPanel-generated handler, do not edit
Which seems to match:
https://framagit.org/hubzilla/core/-/blob/master/.htaccess?ref_type=headsIt is also identical to the websites that work.