Welcome Guest, Not a member yet? Register   Sign In
Hi. How can i cancel the uri style of Code Igniter system?
#1

[eluser]agresif[/eluser]
I must do the link like this,

http://site.com/stats

But CI think that "the stats" is a controller. But not like that. It is the statistic property of DirektAdmin Panel.

How can i cancel the uri style of Code Igniter system?
#2

[eluser]Jelmer[/eluser]
This is probably a .htaccess issue. If you're using the one suggested in the User Guide...
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

... you need to change the RewriteCond to exclude 'stats' from being rewritten:
Code:
RewriteCond $1 !^(index\.php|images|robots\.txt|stats)
#3

[eluser]agresif[/eluser]
I tried these.

RewriteEngine on
----
RewriteCond $1 !^(index\.php|images|robots\.txt|stats)
-or-
RewriteCond $1 !^(index\.php|robots\.txt|stats)
-or-
RewriteCond $1 !^(index\.php|stats)
----
RewriteRule ^(.*)$ /index.php/$1 [L]

But result same.

http://site.com/stats/ => "404 Page Not Found"
http://site.com/ => css's doesn't load. site was broken down.
#4

[eluser]WanWizard[/eluser]
Start by telling us what your environment looks like.

You have a CI application and something called DirektAdmin installed in the same docroot? How?
#5

[eluser]agresif[/eluser]
DirektAdmin is a hosting control panel like Plesk. It has a statistic page. And we can reach that page with writing "stats/" at the end of ethe domain. Like http://site.com/stats

But CI think that "stats" is a controller. And it responding normally "404 Page Not Found" page.

I should say that, "/stats/" is not a controller. I should do passive "/stats/" from the CI Uri system.
#6

[eluser]Jelmer[/eluser]
This is not a problem caused by CI, CI shouldn't handle /stats/ at all. The problem is that "/stats/" is being passed to CI. CI can't cause what's passed to it, that's the webserver's job.

Quote:I tried these.

RewriteEngine on
——
RewriteCond $1 !^(index\.php|images|robots\.txt|stats)
-or-
RewriteCond $1 !^(index\.php|robots\.txt|stats)
-or-
RewriteCond $1 !^(index\.php|stats)
——
RewriteRule ^(.*)$ /index.php/$1 [L]

But result same.

http://site.com/stats/ => “404 Page Not Found”
http://site.com/ => css’s doesn’t load. site was broken down.
This brings me to another question: have you verified that stats works without a .htaccess file in there? (or without CI there at all) And if this CSS changes how your CSS works then it changes something, so how did it look before you changed it after my first answer? Maybe you were excluding the css directory ass wel before? What did your .htaccess look like when the css was still working?




Theme © iAndrew 2016 - Forum software by © MyBB