Welcome Guest, Not a member yet? Register   Sign In
jQuery Poll & PHP in codeigniter - help needed.
#11

[eluser]TheFuzzy0ne[/eluser]
Try adding the following to the top of your htaccess file:
Code:
RewriteEngine On
#12

[eluser]SteveBluck[/eluser]
This is my htaccess file already.
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php?|images|css|js|test\.php)
RewriteRule ^(.*)$ /index.php/$1 [L]
#13

[eluser]TheFuzzy0ne[/eluser]
OK, try removing the leading slash from from before index.php on the last line.
#14

[eluser]SteveBluck[/eluser]
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php?|images|css|js|test\.php)
RewriteRule ^(.*)$ index.php/$1 [L]

This gives me the same result, still a 404 error. I'm so confused!
#15

[eluser]TheFuzzy0ne[/eluser]
OK, I think I've spotted the problem:

Replace $1 with %{REQUEST_URI}. I don't understand where people keep getting this htaccess file from. You might want to try my htaccess file instead.

Code:
RewriteEngine On

RewriteCond %{REQUEST_URI} ^/(system) # Block access to the system directory
RewriteRule ^(.*)$ /index.php/$1 [L]

RewriteCond %{REQUEST_FILENAME} !-f # If the specified URI is not a file
RewriteCond %{REQUEST_FILENAME} !-d # If the specified URI is not a directory
RewriteRule ^(.*)$ /index.php/$1 [L]
#16

[eluser]SteveBluck[/eluser]
I got the htaccess file from the userguide. I used your htacces but now i'm getting an internal server error! But I don't see why...
#17

[eluser]SteveBluck[/eluser]
ok fixed the error, now my file looks like this- but sitll poll not working!

Code:
RewriteEngine On

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

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
#18

[eluser]TheFuzzy0ne[/eluser]
I'm sorry, but I've just about had it with the problem. I'd suggest you call your pages like this:

http://www.iprowar.com/index.php/poll/index

I'll post back if I get to the bottom of this. I've had the problem before myself, but never managed to fix it. It could be something to do with your server configuration.
#19

[eluser]TheFuzzy0ne[/eluser]
Hang on. Is your Web site in a subdirectory in your Web root? If so,what's the directory?
#20

[eluser]SteveBluck[/eluser]
Ok, this seems to work - wierd though huh. Thanks for trying to help anyways.

EDIT: nope, its in the publichtml folder.




Theme © iAndrew 2016 - Forum software by © MyBB