Welcome Guest, Not a member yet? Register   Sign In
problem with htacces and https
#5

(07-01-2017, 08:16 PM)jackey Wrote: this is the .htaccess file i used for my project in my localhost.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /test_abc/

RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ ./index.php?/$1 [L]

RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ ./index.php?/$1 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php?/$1 [L]

RewriteCond %{REQUEST_URI} ^(index.php|images|css|fonts|js|robots.txt)
</IfModule>

here test_abc is the folder name in my localhost.
when i type http://localhost/test_abc in the browser,it works properly in my localhost.

when i upload the content from my localhost into 000webhost.com server
i did the changes

in .htaccess file
RewriteBase into RewriteBase /http://www.example.com/

in config.php
$config['base_url'] = 'http://www.example.com/';
$config['index_page'] = '';

in routes.php
$route['default_controller'] = 'Login';

database.php file is ok

I can see the login page in 000webhost.com server properly, but when i try to login, it says "500 internal server error".

I'm new to this area and unable to handle this issue.
Is there any other changes i have to do here?
can any one please help me to upload my web site.

500 is a server error. check the error log file
Reply


Messages In This Thread
problem with htacces and https - by kozebobinka - 06-09-2017, 02:21 AM
RE: problem with htacces and https - by skunkbad - 06-09-2017, 04:03 PM
RE: problem with htacces and https - by jackey - 07-01-2017, 08:16 PM
RE: problem with htacces and https - by Paradinight - 07-02-2017, 12:55 AM
RE: problem with htacces and https - by Diederik - 07-02-2017, 11:04 AM
RE: problem with htacces and https - by PaulD - 07-02-2017, 01:08 PM
RE: problem with htacces and https - by jackey - 07-02-2017, 10:28 PM



Theme © iAndrew 2016 - Forum software by © MyBB