Skip to main content

URL redirection problem

Comments

7 comments

  • cPanelMichael
    Hello @psytanium, Can you let us know the contents of the .htaccess file in the document root of this website? Ensure to paste the output in CODE tags and replace real domain names with examples. Thank you.
    0
  • psytanium
    Hello @psytanium, Can you let us know the contents of the .htaccess file in the document root of this website? Ensure to paste the output in CODE tags and replace real domain names with examples. Thank you.

    All my websites have the same problem this link, check example.com/index.php please, this account dont have any .htaccess file, try this link example.com/index.php/test, it should result a 404 Not found, right ? Thanks :)
    0
  • cPanelMichael
    Hello @psytanium, I'm not able to reproduce this behavior using the default Apache configuration on a test system. Can you open a
    0
  • psytanium
    Support Request ID is: 10606215
    0
  • psytanium
    Support ticket conclusion: "it appears your issue is specific to how PHP query strings are handled. When loading a PHP file through the Apache service, any characters after the file are handled as query strings. This is the default behavior in the Apache service and allows for PHP query string support." So any server running Apache, have the same behavior.
    0
  • cPanelMichael
    Hello @psytanium, Thank you for sharing the solution. Additionally, here are a couple of links for reference: PHP: http_build_query - Manual RewriteQueryString - Httpd Wiki Thank you.
    0
  • psytanium
    this htaccess helped redirect my URLs properly, if someone have this situation: RewriteEngine On RewriteRule ^index\.php/(.*)$ http://%{HTTP_HOST}/$1 [R=301,L]
    0

Please sign in to leave a comment.