php - ionos shared hosting server does not like url rewrite rules when your file names have the letter a in them?Get the solution ↓↓↓
I have a
.htaccess file for an apache server that works perfectly on all of my apache servers, but breaks on the ionos shared hosting server.
I will explain how to reproduce the issue with 3 files.
File 1: Here is my
~/tt/.htaccess file which has just 3 lines.
RewriteEngine On RewriteBase /tt RewriteRule content index.php?resource=content
File 2: Here is my
~/tt/index.php just to print out request variables:
<?php print_r($_REQUEST); ?>
File 3: And I made a dummy
~/tt/content.a.php that just holds this text.
Next, I put this code on my lamp server. When I visit
https://mypersonalserver.com/tt/content, I successfully see the output
Array ( [resource] => content ) .
Next, I put this code an ionos shared hosting server. When I visit
https://ionosservernamehere.com/tt/content, I see this result here
If I change the file
~/tt/content.p.php on the ionos shared server, then I get the same
Array ( [resource] => content ) output.
Why does ionos not like the letter
a in the file name
Share solution ↓
Link To Answer People are also looking for solutions of the problem: call to a member function format() on string
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.