Welcome Guest, Not a member yet? Register   Sign In
HostNine Codeigniter Problem with index_page
#1

[eluser]Atas[/eluser]
Hello i have a problem with codeigniter on HostNine Hosting.

I am trying to take away "index.php" from my url, but i cant.

I set $config["index_page"] to an empty string, and my .htaccess is the following:

RewriteEngine on
RewriteCond $1 !^(index\.php|assets|fckeditor)
RewriteRule ^(.*)$ index.php/$1 [L]

Did anybody have this problem with this server ?

Thanks in advanced.
#2

[eluser]Đaяк Đaηтє[/eluser]
Hello my Friend, try with this .htaccess

Code:
<IfModule mod_rewrite.c>  
     RewriteEngine on  
  
     RewriteCond %{REQUEST_FILENAME} !-f  
     RewriteCond %{REQUEST_FILENAME} !-d  
     RewriteRule ^(.*)$ index.php?/$1 [L]  
</IfModule>  
  
<IfModule !mod_rewrite.c>  
     ErrorDocument 404 /index.php  
</IfModule>
I save the .htaccess file in the root directory of my application, at the same level of the system folder.

If you need more information you can follow the next thread:
http://ellislab.com/forums/viewthread/121700/#603074

Greetings.
#3

[eluser]Atas[/eluser]
Hello sac, thanks for your reply.

I tried with your htaccess and i have 404 error:

The server can not find the requested page:
174.34.141.50/~villaggi/test/eshop/by_category (port 80)

Strange, this problem only happens in HostNine Hosting... Confusedhut:
#4

[eluser]Đaяк Đaηтє[/eluser]
Uhmm, I suspect that maybe mod_rewrite Module is not active, this would be the reason because .htaccess is omited, maybe you need to talk with your hosting technical support to get this information and solve your problem... try with them




Theme © iAndrew 2016 - Forum software by © MyBB