Welcome Guest, Not a member yet? Register   Sign In
need help
#1

[eluser]hermawan_fsi[/eluser]
i just new using CI, what iam asking is
i am already install in my local server such as http://192.127.0.40/ignition/
i already set the database correcly, but when iam running
http://192.127.0.40/ignition/index.php getting message like this.

Welcome to CodeIgniter!
The page you are looking at is being generated dynamically by CodeIgniter.
If you would like to edit this page you'll find it located at:
system/application/views/welcome_message.php
The corresponding controller for this page is found at:
system/application/controllers/welcome.php

but when iam typing
http://192.127.0.40/ignition/backend.php
CodeExtinguisher - is running

inside already index.php too..

what iam asking is how to set index.php tobe like backend.php, even i rename those file iam still got error to open links such as blog etc..


thanks..
#2

[eluser]opterons[/eluser]
Open your system>application>config>config.php file and change:
Code:
$config['index_page'] = 'index.php';
to:
Code:
$config['index_page'] = 'backend.php ';
Then make sure you rename your root>index.php to backend.php you might also want to look into using mod rewrite to removing index.php all together so you site will display url's like this http://yoursite.com/about instead of http://yoursite.com/index.php/about or in your case http://yoursite.com/backend.php/about if you decide to go this route open your root directory and create a .htaccess file in cmd terminal or ssh terminal. once you have done that enter this code in that file.
Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ backend.php/$1 [L]
Then save and your should be set if that does nto work and you receive a 404 or 500 error then more than likely you will have to locate your httpd.conf file and add to the bottom this code:
Code:
<Directory //var/www/html/your_site>
        AllowOverride All
</Directory>
The line that reads //var/www/html/your_site might not be right for your server just change it to your www dir for apache with the root of you ci install.

That covers pretty much everything let me know if it works out for ya.

-Bryan
#3

[eluser]hermawan_fsi[/eluser]
first thanks for your reply, but the problem stil came out, the error is

Not Found
The requested URL /ignition/backend.php/login was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

even iam change the apache conf server like you suggested.

<Directory //home/smf/ignition/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all

and i am already rename from backend.php became index.php, and in system/application/config/config.php
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config['index_page'] = "backend.php";


is there any missing that i am should be to modified more..

thanks..
#4

[eluser]hermawan_fsi[/eluser]
finaly it's work.. what iam to do is.. to change backend.php text in config.php tobe index.php

but.. why the Blog links is still not working ?
the error is " 404 Page Not Found The page you requested was not found."
#5

[eluser]Muhammad Faisal Shabbir[/eluser]
You should use base_url function for proper linking between ur links. Or for base url you have to write your base url in config.php file
$config['base_url'] = "http://localhost/xyzWeb/";
Or you should writre your link in such way <a href="&lt;?=base_url()?&gt;home/view">View</a>
I hope this will work
#6

[eluser]hermawan_fsi[/eluser]
in the sample programs CodeExtinguisher i have got some links such as.
# Template
# Blog
# User Management,
the problem for me is.. when i click "Blog" the error came out that "
404 Page Not Found, The page you requested was not found."

already change the path
$config['base_url'] = "http://192.127.0.40/ignition/".$_SERVER['HTTP_HOST']; --still same error.

FYI in my apache /home/smf/ -- for httpd.conf..
#7

[eluser]Majd Taby[/eluser]
hey hermawan_fsi, I am bundling a blog with CE but it's not done yet. Somehow that link made it to the official release, I never realized that. The "Blog" link points to nowhere actually.

Sorry for the confusion.




Theme © iAndrew 2016 - Forum software by © MyBB