Welcome Guest, Not a member yet? Register   Sign In
I need help with index.php removal
#1

[eluser]Kamy[/eluser]
Hi:

I've been struggling with this for a while and I'm really getting near my deadline, so I'm starting to panic!

I'm developing a site locally and things are working smoothly, except with the index.php in the URL. I need to make the website bilingual and all tutorials and docs point to the fact that I need to use pretty URLs, ie remove index.php.

I've been reading the forums and other tutorials, but I just don't seem able to fix it.....

I have the following in my htp.config file:

Code:
<Directory />
#    Options FollowSymLinks
#    AllowOverride None
#    Order deny,allow
#    Deny from all
    
Options All
AllowOverride All
</Directory>

<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/shen">
Options Indexes Includes FollowSymLinks MultiViews
AllowOverride AuthConfig FileInfo
Order allow,deny
Allow from all
</Directory>

my .htaccess file is located on C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/shen :

Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /shen/

#Removes access to the system folder by users.
#Additionally this will allow you to create a System.php controller,
#previously this would not have been possible.
#'system' can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php/$1 [L]

#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

<

IfModule !mod_rewrite.c>
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
# Submitted by: ElliotHaughin

ErrorDocument 404 /index.php
</IfModule>

In config files I have:
Code:
$config['index_page'] = "";
$config['uri_protocol']    = "AUTO";
Restarted Apache...

My environment is: Win Vista, PHP5.3, Apache 2.2

When I try to access a page without index.php I get a 404 error from server (not CI error)

PLEASE HELP !
#2

[eluser]Kamy[/eluser]
I've loaded my files on a domain, things are same way not working...

http://www.akseda.com
#3

[eluser]Kamy[/eluser]
I changed my .htaccess to

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

and in config file"

Code:
$config['uri_protocol']    = "REQUEST_URI";

Now things seem to be working online , but on my loacal I get 404 errors !
I changed the RewriteBase / to RewriteBase /shen/ but the same issue!

Any ideas?




Theme © iAndrew 2016 - Forum software by © MyBB