I can't login in my application after activating htaccess
I'm using cpanel as online server, Initially before activating htaccess file i was able to login but after activating it I can't login again to my application built in codeigniter flamework.
Also I don't know how to deactivate htaccess in cpanel and also i cant find httpd in cpanel.
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.
.htaccess is also located in social folder together with codeigniter folders and it's look this
config.php is here [PHP]$config['base_url'> = 'http://project/social/'; $config['index_page'> = 'index.php'; $config['uri_protocol'> = 'QUERY_STRING';[/PHP] When i try to login via login page the following message at browser is displayed
Any help please, i can't access my application but before activation of htaccess i was able..
RewriteEngine On
RewriteBase /social/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
ErrorDocument 404 /index.php
config.php is here [PHP]$config['base_url'> = 'http://project/social/'; $config['index_page'> = 'index.php'; $config['uri_protocol'> = 'QUERY_STRING';[/PHP] When i try to login via login page the following message at browser is displayed
From project
Hay un error en el inicio!Any help please, i can't access my application but before activation of htaccess i was able..
-
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 -
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 -
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 -
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. thanks0 -
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 -
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 All0 -
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 -
If you've got root access to this server you would have access to that file.
ok let me contact hosting provider0 -
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.
Comments
9 comments