Problems with the index in the url

modify the .htaccess file and in some cases it shows me this error, usually when I try to login in a journal.

    RewriteEngine On
    RewriteBase /

    # List of actual folders I want to access (like http://pagina.cl)
    #RewriteRule ^(folder1|folder2|folder3)($|/) - [L]

    # Redirect www.pagina.cl to pagina.cl
    RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
    RewriteRule ^(.*)$ http:/sub.pagina.cl/%1/$1 [R=301,L]

    # Remove index.php
    RewriteCond %{SERVER_NAME} ^pagina.cl
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php/%1 [L]

    # Handle subdomains
    RewriteCond %{SERVER_NAME} ^([a-z0-9-]+)\.pagina\.cl$ [NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php/%1/$1 [L]

Has someone had the same problem? If so, how can I solve it?

Thank you…

1 Like

What error do you mean?
And what software and version are you using?