Welcome Guest, Not a member yet? Register   Sign In
Error in redirecting
#3

[eluser]mstdmstd[/eluser]
In case
Code:
redirect( 'admin/facility/edit/' . $id );
resulting url is the same http://local-ci22.com/-/admin/facility/edit/5/page/1

In apache log I see rows:
Code:
127.0.0.1 - - [28/Aug/2014:07:15:59 +0300] "POST /admin/facility/edit/5/page/1 HTTP/1.1" 302 3727 "http://local-ci22.com/admin/facility/edit/5/page/1" "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:31.0) Gecko/20100101 Firefox/31.0"
127.0.0.1 - - [28/Aug/2014:07:15:59 +0300] "GET /-/admin/facility/edit/5/page/1 HTTP/1.1" 200 8904 "http://local-ci22.com/admin/facility/edit/5/page/1" "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:31.0) Gecko/20100101 Firefox/31.0"
In my application/config/routes.php :
Code:
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

$route['default_controller'] = "main";
//$route['404_override'] = '';*/
$route['about_us'] = 'main/cms_page/about_us';
$route['contact_us'] = 'main/cms_page/contact_us';
$route['security_privacy'] = 'main/cms_page/security_privacy';
$route['terms_condition'] = 'main/cms_page/terms_condition';
$route['travel_insurance'] = 'main/cms_page/travel_insurance';
$route['register'] = 'main/register';
$route['hostel/:any'] = 'hostels/hostel';
$route['tour/:any'] = 'tours/tour';

$route['cron/tour-subscription'] = "cron/tour_subscription";

$route['404_override'] = 'main/invalid_url';

/* End of file routes.php */
/* Location: ./application/config/routes.php */

Hosting definition in local-ci22.com.conf :
Code:
<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot /_wwwroot/ci22    
    <Directory /_wwwroot/ci22>
      AllowOverride All
      Order Deny,Allow
      Allow from all
      Require all granted
    </Directory>
    
    ServerName local-ci22.com
    ServerAlias local-ci22.com

    Options FollowSymLinks
    DirectoryIndex index.php
    
    ErrorLog /_wwwroot/ci22/log/error.log
    CustomLog /_wwwroot/ci22/log/access.log combined
</VirtualHost>
Can it be error in some configuration ?
I am under Kubuntu 14 :
Code:
$ uname -a
Linux serge-System-Product-Name 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:12 UTC 2014 i686 athlon i686 GNU/Linux

Also usual relative links in smarty defined as :
Code:
<a class="edit" href="admin/facility/edit/{$FacilitysList[row].id}{$PageParametersWithSort}">Edit</a>
works ok and in apache logs I see line :
Code:
127.0.0.1 - - [28/Aug/2014:07:27:47 +0300] "GET /admin/facility/edit/5/page/1 HTTP/1.1" 200 9934 "http://local-ci22.com/admin/facility/index/page/1" "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:31.0) Gecko/20100101 Firefox/31.0"


Messages In This Thread
Error in redirecting - by El Forum - 08-27-2014, 08:20 AM
Error in redirecting - by El Forum - 08-27-2014, 09:32 AM
Error in redirecting - by El Forum - 08-27-2014, 09:29 PM
Error in redirecting - by El Forum - 08-28-2014, 07:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB