CodeIgniter Forums
.htaccess problem.. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: .htaccess problem.. (/showthread.php?tid=62516)



.htaccess problem.. - kemjohnm - 07-23-2015

Please help.. this my .htaccess code..

RewriteBase /

RewriteEngine On


RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.+)$ index.php/$1 [L]

and my page looks like this.. see it in attachment or go to (www.1kem1.n9s.com)

Please help me guys..

thank you very much..


RE: .htaccess problem.. - Wouter60 - 07-23-2015

My .htaccess looks like this:
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

# Prevent file browsing
Options -Indexes

As you can see, I don't use the RewriteBase rule. CodeIgniter works fine without it.


RE: .htaccess problem.. - Dracula - 07-23-2015

(07-23-2015, 10:35 AM)kemjohnm Wrote: Please help.. this my .htaccess code..

RewriteBase /

RewriteEngine On


RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.+)$ index.php/$1 [L]

and my page looks like this.. see it in attachment or go to (www.1kem1.n9s.com)

Please help me guys..

thank you very much..

You donțt have an index.php file and that's why your page looks like that.


RE: .htaccess problem.. - mwhitney - 07-23-2015

Also, RewriteEngine On should be before RewriteBase, if you actually need RewriteBase or RewriteEngine On.


RE: .htaccess problem.. - kemjohnm - 07-23-2015

Forbidden

You don't have permission to access /application/controllers/Login.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.




RE: .htaccess problem.. - pdthinh - 07-24-2015

(07-23-2015, 09:43 PM)kemjohnm Wrote: Forbidden

You don't have permission to access /application/controllers/Login.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.





Try add the line 
Code:
Options +FollowSymLinks
on the top of your .htaccess


RE: .htaccess problem.. - kemjohnm - 07-24-2015

still the same error..


RE: .htaccess problem.. - mwhitney - 07-24-2015

Have you checked the permissions on your /application and /application/controllers directories, as well as the Login.php file?

Additionally, is your DocumentRoot set correctly (to the directory containing your index.php file) in your site's .conf file?