Welcome Guest, Not a member yet? Register   Sign In
Hiding index.php When Using site_url()
#11

[eluser]jedd[/eluser]
I'm glad to see you're still using an htaccess that you don't understand. Stick with it - eventually, if you keep hitting it with a hammer, it will work. Honestly.

Now .. have you confirmed that mod_rewrite is loaded?
#12

[eluser]bluepicaso[/eluser]
i have changed it to
Code:
RewriteEngine On
RewriteBase /kids/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /kids/index.php?/$1 [L]

How to confirm weather mode_rewrite is loaded or not
#13

[eluser]jedd[/eluser]
Quote:How to confirm weather mode_rewrite is loaded or not

phpinfo() would be probably the easiest way.
#14

[eluser]bluepicaso[/eluser]
yes the mode is installed.


Loaded Modules:
core mod_win32 mpm_winnt http_core mod_so mod_actions mod_alias mod_asis mod_auth_basic mod_authn_default mod_authn_file mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_user mod_autoindex mod_cgi mod_dir mod_env mod_include mod_isapi mod_log_config mod_mime mod_negotiation mod_rewrite mod_setenvif mod_php5
#15

[eluser]bluepicaso[/eluser]
Please help me guys.....
#16

[eluser]bluepicaso[/eluser]
At last this has done
it
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /kids/index.php/$1 [L]


Thank you people For motivating me :red:
#17

[eluser]bretticus[/eluser]
Code:
RewriteEngine On
RewriteBase /kids/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]

Would have worked just fine. The issue is that you were using a sub folder is all. That is not a complicated apache config. On the contrary, I think it's the best because you don't need to change it for any new kind of media files you might have since that rewrite excludes real files being redirected at your index.php page.

Glad you got it working.
#18

[eluser]bluepicaso[/eluser]
thank you
sir this one is cool...

i feel embarrassed.....sorry m new to this stuff
#19

[eluser]bretticus[/eluser]
[quote author="joymania" date="1248987791"]thank you
sir this one is cool...

i feel embarrassed.....sorry m new to this stuff[/quote]

No need to feel embarrassed. Using apache rewrite in order to get clean urls with a framework is essentially a hack. Not very intuitive at first. Smile
#20

[eluser]bluepicaso[/eluser]
This thread seems to be solved at least for me




Theme © iAndrew 2016 - Forum software by © MyBB