www.webdeveloper.com
Results 1 to 3 of 3

Thread: CodeIgniter Links Not Working

  1. #1
    Join Date
    Apr 2009
    Posts
    346

    CodeIgniter Links Not Working

    I'm working on a CodeIgniter site on my server and the location of the site would be similar to this: http://www.mysite.com/Customers/CodeIgniter_Site

    With the .htaccess file uploaded into this folder, every time I type that URL into the browser hoping to pull up the index.php page of the CI site, it returns the index.php page for my base site - http://www.mysite.com - without the CSS styling.

    When I don't have the .htaccess file uploaded into this folder, the proper index.php page displays but all the links result in 404 Errors.

    Does anyone have any experience with this?

  2. #2
    Join Date
    May 2012
    Posts
    17
    Can we see your .htaccess file?

  3. #3
    Join Date
    Apr 2009
    Posts
    346
    Sure. Here it is:

    Code:
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_URI} ^/(stats|failed_auth\.html).*$ [NC]
    RewriteRule . - [L]
    </IfModule> 
    
    
    RewriteEngine on
    
    RewriteRule ^$ /index.php [L]
    RewriteCond $1 !^(index\.php|images|css|js|uploads|topblog|assets|video_files|userfiles|index\.html|placeholder\.jpg|robots\.txt|favicon\.ico|zip\.php|user_guide|resources|cometchat)
    RewriteRule ^(.*)$ /index.php?/$1 [L]

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles