htaccess issue about Upload CI 3 on BLUEHOST |
Hi
Recently I've uploaded my CI 3 folder to my host (bluehost). Before upload on the host I've remove index.php from my URL via .htaccess and on my localhost its working well. Once I upload on the host, when I'm clicking on any page ill get the 500 error. checkout ( http://advin-group.net/ ). EDIT also my config is PHP Code: $config['base_url'] = ''; .htaccess Code: <IfModule mod_rewrite.c> I've already talk to bluehost technical support, they mentioned its my coding problem. (htaccess) how can i solve it?
2 things I'd check.
1) make sure your rewrite module is actually named "mod_rewrite.c". Depending on the OS, it might be a different name like mod_rewite.so. 2) Try adding a ? after index.php in the rewrite rule, like index.php?/$1. (05-31-2015, 11:17 AM)CroNiX Wrote: 2 things I'd check. Thanks for reply. 1) How to check this?? is it depend to my host OS? 2) I've added ? the error still is 404. (05-31-2015, 08:05 PM)ardavan Wrote:(05-31-2015, 11:17 AM)CroNiX Wrote: 2 things I'd check. Try to use your .htaccess rule without QSA flag (05-31-2015, 08:26 PM)Sky Wrote:(05-31-2015, 08:05 PM)ardavan Wrote:(05-31-2015, 11:17 AM)CroNiX Wrote: 2 things I'd check. Still its the same I've tried these Code: RewriteRule ^(.*)$ index.php?/$1 [L]
Also even when I'm delete the htaccess file ill get this error!
Code: Not Found
Try changing this to another one some times it will work and some times it will not.
config.php PHP Code: /* .htaccess PHP Code: <IfModule mod_rewrite.c> What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(05-31-2015, 08:05 PM)ardavan Wrote:(05-31-2015, 11:17 AM)CroNiX Wrote: 2 things I'd check. First you said there is a code 500 error, now it's a 404 error? If the error was a 500, there could also be a file rights management problem. Did you set the files to have 777 file permissions? Website: http://avenir.ro
(05-31-2015, 11:05 PM)Avenirer Wrote:(05-31-2015, 08:05 PM)ardavan Wrote:(05-31-2015, 11:17 AM)CroNiX Wrote: 2 things I'd check. All folders are 755. do i need to change to 777?
Did you try setting your base url?
PHP Code: $config['base_url'] = 'http://advin-group.net/'; What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |