problem with htacces and https |
Hello
I've made simple htacess from manual: Code: RewriteEngine On If I coming via http - it works If I coming via https - it works, but changes the address in address line from https://example.com/zzz/ to https://example.com/index.php/zzz/ Code: $config['index_page'] = ''; What can I do to remove this "index.php" from https links? (06-09-2017, 02:21 AM)kozebobinka Wrote: Hello Try this .htaccess: Code: RewriteEngine On
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.
(07-01-2017, 08:16 PM)jackey Wrote: this is the .htaccess file i used for my project in my localhost. 500 is a server error. check the error log file Quote:RewriteBase into RewriteBase /http://www.example.com/ You have a forward slash before your http in your post above, have you put this in your .htaccess file too? Take it out. |
Welcome Guest, Not a member yet? Register Sign In |