Skip to main content

I can't login in my application after activating htaccess

Comments

9 comments

  • 24x7server
    Hi,
    Also I don't know how to deactivate htaccess in cpanel and also i cant find httpd in cpanel.

    A simple rename of the file will deactivate it.. You can go to the filemanager and and rename it to .htaccess_BK and it will deactivate the .htaccess file. If you have only cPanel account with a hosting provider, then you cannot do changes in the http because that is controlled by the server administrator and not by any user.
    0
  • abuujurayj
    Thanks for your response, but i have already rename it to something else but still i can't login. I tried also to create another sub domain and to copy application folders in it without htaccess but still i can't login. The message displayed by the browser is like this From project Hay un error en el inicio!
    0
  • Infopro
    MY APPLICATION IS LOCATED IN SUB DOMAIN AS : example.com/project/social. where example.com is the main domain, project is a sub domain and social is a folder containing codeigniter application.

    If you created an actual sub.domain for your project, it would be at project.example.com/social/ I would think. That error is not a cPanel error. Have you asked your Hosting Provider for assistance with this?
    0
  • abuujurayj
    That error is not a cPanel error.Have you asked your Hosting Provider for assistance with this?

    but remember before activation of htaccess everything was fine!!!!! let me look for more help elsewhere, if the problem will be solved I shall let you know. thanks
    0
  • Infopro
    Renaming the htaccess then, should have helped. Your Hosting Provider can certainly take a closer look at the account for you for fastest resolution I would think.
    0
  • abuujurayj
    sorry can I follow these procedures in cpanel? Go to /etc/apache2/apache2.conf file above and look for Options Indexes FollowSymLinks AllowOverride None Require all granted Change "AllowOverride" from None to All
    0
  • Infopro
    If you've got root access to this server you would have access to that file. Your forum profile lists you as Website Owner though and as Website Owner you normally would not have the access to that file.
    0
  • abuujurayj
    If you've got root access to this server you would have access to that file.

    ok let me contact hosting provider
    0
  • abuujurayj
    The problem solved, the source of problem was a single line in codeigniter in config.php file, here it is $config['uri_protocol'> = 'REQUEST_URI';
    I was able to detect the source of problem after running my application by using localhost. Then I was changed that line to $config['uri_protocol'> = 'QUERY_STRING';
    after that the problem disappeared. thanks a lot for your support.
    0

Please sign in to leave a comment.