Welcome Guest, Not a member yet? Register   Sign In
Return URI Segment
#11

[eluser]InsiteFX[/eluser]
Did you change your base_url in ./application/config/config.php ?
#12

[eluser]rash[/eluser]
Yes before it was

$config['base_url'] = "http://www.baxobeat.com/";

and i changed it to

$config['base_url'] = "http://aapkapaper.com/demo/Baxobeat/";


#13

[eluser]LuckyFella73[/eluser]
Did you try all different URI protocols in application/config.php ?

Code:
$config['uri_protocol'] = 'AUTO';
#14

[eluser]InsiteFX[/eluser]
uri->segments()
segment 1 segment 2 etc;
controller/method
Code:
$config[‘base_url’] = “http://aapkapaper.com/demo/Baxobeat/”;

Code:
$page_name =  $this->uri->segment(2);
$controller_name =  $this->uri->segment(1);

I would also check your ./application/config/routes.php file you may need to make changes in there also.
#15

[eluser]rash[/eluser]
I tried by changing the URI Potocols but it didn't worked.

Can yu please suggest what changes i do in routes.php . In this page the following codes are seted.

$route['default_controller'] = "home";
$route['scaffolding_trigger'] = "";

...
#16

[eluser]rash[/eluser]
Any help for this..........
#17

[eluser]rash[/eluser]
I didn't get a solution for this. Can anyone help for this plz...........
#18

[eluser]LuckyFella73[/eluser]
Hi Rash,

on some webservers it can be a bit tricky to set up the
.htaccess in the right combination with uri_protocol in
config.php

Your welcome controller is working - I'm quite sure you
just have to configurate the .htaccess and uri_protocol.

Just a usefull snippet I found in these forums for config.php:

Code:
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH a trailing slash:
|
| http://example.com/
|
| If this is not set then CodeIgniter will guess the protocol, domain and
| path to your installation.
|
*/
if(isset($_SERVER['HTTP_HOST']))
{
$config['base_url'] = isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ? 'https' : 'http';
$config['base_url'] .= '://'. $_SERVER['HTTP_HOST'];
$config['base_url'] .= isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] != '80' ? ( ':'.$_SERVER['SERVER_PORT'] ) : '';
$config['base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['SCRIPT_NAME']);
}
else
{
$config['base_url'] = 'http://localhost/your_project/';
}

When uploading your project you don't have to think about setting the base_url
anymore.

Try different .htaccess examples and try each possible uri_protocol when checking
a .htaccess.

Cheers




Theme © iAndrew 2016 - Forum software by © MyBB