Welcome Guest, Not a member yet? Register   Sign In
rewrite mod
#1

[eluser]nhantam[/eluser]
I have controller mycontroller

when I write my browser: http://www.mydomain.com/mycontroller is OK
but:
if I only write my browser: mydomain.com/mycontroller
then browser appear allow: http://www.mydomain.com/index.php/mycontroller

Could you help. How do I hidden "index.php" ?

My htaccess:

Code:
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]

RewriteCond %{HTTP_HOST} ^mydomain.com
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [L,R=301]
#2

[eluser]Bart v B[/eluser]
At your /application/config/config.php

Code:
// this is wat it looks like
$config['index_page'] = 'index'; // remove index.php

// this you must make it.
$config['index_page'] = '';
#3

[eluser]nhantam[/eluser]
Dear Bart vB.
I have been remove but run not true.

Please visist my application:
http://www.nghenghiepviet.com

If I write my browser: nghenghiepviet.com/tim-viec or click link google cache http://nghenghiepviet.com/tim-viec

after appear at browser: http://www.nghenghiepviet.com/index.php/tim-viec
#4

[eluser]Bart v B[/eluser]
I think that's a manner of time.
Google indexed you page as how it was on that time..
So when you wait a few weeks then it would be right.
The last visit of the google crawler was on 6 aug 2011 10:07:31 GMT
I did a google search and use the cache, and it's working well with no index.php

Maybe you have a slow TTL so you did not see the actual page but the cach page.
#5

[eluser]Unknown[/eluser]
so everything turns good yet?? Smile


<a href="http://www.vietnamworks.com">việc làm</a>




Theme © iAndrew 2016 - Forum software by © MyBB