⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

404 error when accessing the base folder in godaddy



udayanga
  • profile picture
  • Member

Posted 27 August 2015 - 16:54 PM

HI All,

I'm new to this grocerycrud libraries.
I manged to implement a basic CRUD operation using grocerycrud library and deploy it on XAMMP in my local machine.
But when I deploy the application and when i try to access the grocerycrud related module I'm getting 404 error.

http://globallanka.lk/carsaleadmin/

 

seems there is an issue with groceycrud.

please help me to solve this issue.

BR,

Udayanga

 


Amit Shah
  • profile picture
  • Member

Posted 28 August 2015 - 08:48 AM

it is not issue with grocery crud - .. GC is a library over CI  as a platform - Goddady have its own configuration for CI .. check them out on Stackoverflow or same / google... you should get one such info...

 

Set it right and it should work

 

Happy GCing :)


udayanga
  • profile picture
  • Member

Posted 28 August 2015 - 09:25 AM

I went through the stackoverflow and try to fix it but it didnt work.
It says to change the .htaccess file.

which .htaccess file need change and how ???


Amit Shah
  • profile picture
  • Member

Posted 28 August 2015 - 11:55 AM

the .htaccess in the applications root folder.. 

meaning if you hosting http://www.xyz.com/test as your application.. you have to change / create the same in xyz folder.


udayanga
  • profile picture
  • Member

Posted 29 August 2015 - 02:44 AM

could you tell me how i can create or edit .htaccess file I mean the content of the file.
I  used several contents according to different forums but no one worked for me.

:(


udayanga
  • profile picture
  • Member

Posted 29 August 2015 - 10:39 AM

My grocerycrud application is located in saleadmin folder as follow;

http://globallanka.lk/saleadmin/

 

Inside that folder .htaccess file contain following content

 

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

 

In the config file;

$config['base_url'] = 'http://globallanka.lk/saleadmin/';

$config['index_page'] = '';

 

BUT STILL I'm getting  404 error... I'm really dissaponted with this issue because I developed saleadmin by spending  my valubale time but now its useless
please help me to solve this issue as soon as possible.

Thank you for your valuable answers 


Amit Shah
  • profile picture
  • Member

Posted 29 August 2015 - 17:32 PM

https://github.com/bcit-ci/CodeIgniter/wiki/Godaddy-Installation-Tips

 

this url should give you tips to achieve the same..

 

Happy GCing :)