codeigniter 302 found error
The simplest one:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L]</IfModule>
If it doesn't help then you should check mod_rewrite is enabled.
Use this:
<IfModule mod_rewrite.c>RewriteEngine On#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.phpRewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-d#This last condition enables access to the images and css folders, and the robots.txt fileRewriteCond $1 !^(index\.php|public|images|robots\.txt|css)RewriteRule ^(.*)$ index.php/$1 [L]</IfModule>
try something like this for your .htaccess
file:
RewriteEngine On#request to index.phpRewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteCond $1 !^(index\.php|public|images|robots\.txt|css)RewriteRule ^(.*)$ index.php?/$1 [L]
The ?
after index.php
helps to fix 'No input file specified'
error