Whenever I go to a page, like payment.php,the URL always become www.website.com/public_html/payment. I don't have any .htaccess anymore in both public_html and the root.
This happened after I tried using this, and even if I deleted my .htaccess, it still adds public_html in the URL.
This is the rules that I added (I already deleted the file so I'm expecting that no rewriting should happen anymore):
# Remove .php extension
RewriteCond %{THE_REQUEST} ^GET\ /[^?\s]+\.php
RewriteRule (.*)\.php$ /$1/ [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^/(.+)/$
RewriteCond %{DOCUMENT_ROOT}/%1.php -f
RewriteRule ^(.*)/$ $1.php [L]
# Force trailing slash
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule .*[^/]$ $0/ [L,R=301]
How to revert it back to the default?
Note: I don't really know much about this, so please comment for what other info should I add
 
    