Part of the EllisLab Network
   
1 of 2
1
a
Posted: 21 July 2008 06:30 PM   [ Ignore ]  
Summer Student
Total Posts:  15
Joined  07-21-2008

a

Profile
 
 
Posted: 21 July 2008 06:46 PM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
RankRankRankRankRank
Total Posts:  3097
Joined  01-07-2008

The problem is in the url protocol.  For example, if you take the login url and change it from index.php/login to index.php?/login you’ll see that it works.

Go into application/config.php and scroll down to the uri protocol section.
It’s probably set to auto, try some of the other options suggested in the comments.

Let us know how it goes.  Welcome to CodeIgniter.

 Signature 
Profile
MSG
 
 
Posted: 21 July 2008 07:01 PM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  15
Joined  07-21-2008

a

Profile
 
 
Posted: 21 July 2008 09:33 PM   [ Ignore ]   [ # 3 ]  
Summer Student
Total Posts:  15
Joined  07-21-2008

OK SO I HAVE LINUX HOSTING WITH GODADDY, I HAVE NO HT_ACCESS FILE AND IN CONFIG.PHP I HAVE SET THE INDEX PAGE TO “INDEX.PHP?”

BUT IT STILL DOSENT WORK I HAVE TRIED ALL THE URI PROTOCOL SETTING TOO BUT THEY DONT WORK EITHER CURRUNTLY HAVE IT SET TO QUERY_STRING

THANKS

Profile
 
 
Posted: 21 July 2008 11:57 PM   [ Ignore ]   [ # 4 ]  
Grad Student
Rank
Total Posts:  34
Joined  07-17-2006

Hi,

just a note.  As a common courtesy, it’d be greatly appreciated if you do not post in all caps.

Also, when you say “it doesnt work”, what do you mean?  what kind of error are you getting.

-S

Profile
 
 
Posted: 22 July 2008 12:16 AM   [ Ignore ]   [ # 5 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  2280
Joined  07-30-2007

After adding the ? after within config.php your links still aren’t correct?

Are you building your links with the anchor() helper?

 Signature 

Follow me on twitter here.
MichaelWales.com | MichaelWales.info

Profile
 
 
Posted: 22 July 2008 12:19 AM   [ Ignore ]   [ # 6 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  119
Joined  03-24-2007

You should stop posting the same issue over and over again or moderators will get hungry. Just saying.

As it was previously said, you need to be more specific to get help with your problem.

 Signature 

Twitter | Facturation en ligne avec iScriba (one of my CodeIgniter apps)

Profile
 
 
Posted: 22 July 2008 02:41 AM   [ Ignore ]   [ # 7 ]  
Administrator
Avatar
RankRankRankRankRank
Total Posts:  3097
Joined  01-07-2008

It should be browser independent.

I guess it won’t work without a question mark, so we’ll need to add that.  Same file:

$config['index_page'"index.php?"
 Signature 
Profile
MSG
 
 
Posted: 22 July 2008 06:03 AM   [ Ignore ]   [ # 8 ]  
Summer Student
Total Posts:  15
Joined  07-21-2008

thanks inparo but im not understanding you totally i did try putting the question mark in after index.php in the config file but it has not made a difrence, but im sure we are getting warmer its seems to be something along these lines, to do with a question mark,

tahnks

Profile
 
 
Posted: 22 July 2008 06:28 AM   [ Ignore ]   [ # 9 ]  
Administrator
Avatar
RankRankRankRankRank
Total Posts:  3097
Joined  01-07-2008

Hmm, it’s showing me an error now when I try to force it.  It’s a little difficult to debug since:

Filenamelibraries/Router.php
Line Number
441 

My router has less than 400 lines.  What version of CI are you running? (found in codeigniter/codeigniter.php: define(‘CI_VERSION…)

 Signature 
Profile
MSG
 
 
Posted: 22 July 2008 06:38 AM   [ Ignore ]   [ # 10 ]  
Summer Student
Total Posts:  15
Joined  07-21-2008

yeah sorry that was me messing around with other settings in the config with the EXT iv put it back now and you can force the question mark

this is the version im using anyway
// CI Version
define(‘APPVER’,  ‘1.5.2’);

Profile
 
 
Posted: 22 July 2008 06:56 AM   [ Ignore ]   [ # 11 ]  
Administrator
Avatar
RankRankRankRankRank
Total Posts:  3097
Joined  01-07-2008

Adding a question mark really should do it.  How are you generating your links?  Are you using anchor() or are they hardcoded?

 Signature 
Profile
MSG
 
 
Posted: 22 July 2008 07:02 AM   [ Ignore ]   [ # 12 ]  
Summer Student
Total Posts:  15
Joined  07-21-2008

as i said at the top, this was a clone script all i did was upload all the files and import the database and link them together and followed a few instuctions, so the links where already there iv never even herd of codeigniter till now and im not great with php ither i am quite happy if you like to pm you the login details for the ftp and you can have a look around if you like…

Profile
 
 
Posted: 22 July 2008 07:41 AM   [ Ignore ]   [ # 13 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  4777
Joined  03-23-2006

anthonyjbarnes, I’ve merged this thread with your other of the same topic.  Again, an effort to keep all discussion of your topic in one place.  No need to multiple post or post in caps, we see it.

Godaddy is notoriously difficult.  What did your google search for “codeigniter godaddy” reveal? For that matter, what did your forum search reveal?

 Signature 

DerekAllard.com - CodeIgniter, ExpressionEngine, and the World of Web Design

Profile
MSG
 
 
Posted: 22 July 2008 08:02 AM   [ Ignore ]   [ # 14 ]  
Administrator
Avatar
RankRankRankRankRank
Total Posts:  3097
Joined  01-07-2008

Sighs, godaddy… should’ve known (didn’t look at the other thread, I skip the all caps ones).

Since your script may not be coded with anchor tags, completely removing index.php probably isn’t an option, so something like this should be more appropriate:

Make a file called .htaccess in your root (where the index.php file resides) with this content:

RewriteEngine On

RewriteCond 
%{REQUEST_URI} !^index\.php\?(.*)
RewriteRule ^index.php/?(.*)$ index.php?/$1 [L] 

Then change the uri_protocol in the script to:

$config['uri_protocol']    "QUERY_STRING"

Let us know how that goes.

 Signature 
Profile
MSG
 
 
Posted: 22 July 2008 08:08 AM   [ Ignore ]   [ # 15 ]  
Summer Student
Total Posts:  15
Joined  07-21-2008

ok that gave me the following: error 500 internal server error any more sugestions but thats cos i had copy and pasted the htaccess code wrong, iv corected it now and have done exatly as you instructed but link still do now work

thanks

Profile
 
 
   
1 of 2
1