Welcome Guest, Not a member yet? Register   Sign In
Please help on my .htaccess
#1

[eluser]LNS[/eluser]
Hi,

I cann't setup .htaccess file working with CI. Please help me! Thanks!
This is my .htaccess file
Code:
Options -Indexes
Options +FollowSymLinks
DirectoryIndex index.php

RewriteEngine on
RewriteBase /ebookfull/source/
RewriteCond $1 !^(index\.php|website|templates|download|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

And there are results:
http://localhost/ebookfull/source/ [OK]
http://localhost/ebookfull/source/index.php/view/detail/339.html [OK]
http://localhost/ebookfull/source/view/detail/339.html [Error: No input file specified.]
#2

[eluser]cbmeeks[/eluser]
Did you tell apache to allow .htaccess overrides?

It's in your httpd.conf
#3

[eluser]LNS[/eluser]
Yes, I allowed .htaccess overrides.

This is my httpd.conf (I use XAMPP)
Code:
<Directory "C:/xampp/htdocs">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks Includes ExecCGI
    
    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride All

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all

</Directory>




Theme © iAndrew 2016 - Forum software by © MyBB