Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter URLs F1 F1 F1 F1 plz:not solved yet
#11

[eluser]wiredesignz[/eluser]
May have something to do with $config['uri_protocol'] also.
#12

[eluser]nirbhab[/eluser]
$config[’uri_protocol’]????
how can this help?
any changes please reply in detail so that i cud try n tell

n sry for d delay tonanbarbarian office closed me at home now
#13

[eluser]nirbhab[/eluser]
tonanbarbarian following code is running:
and it is including the blog.php file in controllers, u can check the URL.
but my problem still resides coz i am still not able to access the url without EXT

echo '<pre>'.print_r(get_included_files(), true).'</pre>';

this is gud code for debugging.
#14

[eluser]nirbhab[/eluser]
hi wiredesignz i had a brief over view over $config[’uri_protocol’] in configuration file.
it says the following
| 'AUTO' Default - auto detects
| 'PATH_INFO' Uses the PATH_INFO
| 'QUERY_STRING' Uses the QUERY_STRING
| 'REQUEST_URI' Uses the REQUEST_URI
| 'ORIG_PATH_INFO' Uses the ORIG_PATH_INFO

please suggest me something to try of, so that i am able access the controllers without EXT.
UPDATED:
i tried all the possible combinations
i not able to get one thing that it is displaying apache error.
while the index.php?blog and index.php/blog.html
both are wrking fine
thr must be a solution to it
#15

[eluser]tonanbarbarian[/eluser]
can you include the full content of your
application/config/config.php
application/config/routes.php
application/controllers/blog.php
application/config/autoload.php

files so we can see if there is anything in them that could be causing the problem
#16

[eluser]Michael Ekoka[/eluser]
hey nirbhab, I went to both urls that you posted, the one without .html seems to be an apache problem. At the top of your index.php i'd try to put this:
Code:
echo 'success'; exit;

and see if it actually reads it. If not, then forget trying to solve this inside your app.

EDIT:
Ah! nvm, I just realized that it may not be working because you currently have the second configuration loaded. It would probably be easier for us to help if you made two installations rather than swapping configuration files.
i.e.
http://cdcg.in/mvc1/index.php/blog
http://cdcg.in/mvc2/index.php/blog.html
#17

[eluser]nirbhab[/eluser]
currently i am working with $config['index_page'] = 'index.php?'; configuration, but another problem arose to this way i.e.
if i use $config['url_suffix'] = ".html";
as my configuration in the same file than i am not able to access my resources by .html url's suffix.


$config['index_page'] = 'index.php?';
this configuration is used when we wrk with site_url()
site_url is generated automatically which is equal to "base_url().index.php?".

index.php?blog rather than index.php/blog works fine with my current configs [thanks], but how to access my controllers with .html suffix.




Theme © iAndrew 2016 - Forum software by © MyBB